#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 { /// /// 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. /// 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; } } }