| 1234567891011121314151617181920212223242526272829303132333435363738 |
- #region File Description
- //-----------------------------------------------------------------------------
- // Move.cs
- //
- // Microsoft XNA Community Game Platform
- // Copyright (C) Microsoft Corporation. All rights reserved.
- //-----------------------------------------------------------------------------
- #endregion
- #region Using Statements
- using System;
- using Microsoft.Xna.Framework.Input;
- #endregion
- namespace InputSequenceSample
- {
- /// <summary>
- /// Describes a sequences of buttons which must be pressed to active the move.
- /// A real game might add a virtual PerformMove() method to this class.
- /// </summary>
- class Move
- {
- public string Name;
- // The sequence of button presses required to activate this move.
- public Buttons[] Sequence;
- // Set this to true if the input used to activate this move may
- // be reused as a component of longer moves.
- public bool IsSubMove;
- public Move(string name, params Buttons[] sequence)
- {
- Name = name;
- Sequence = sequence;
- }
- }
- }
|