public DownWalkingState(Player currentPlayer) { ISpriteFactory factory = new SpriteFactory(); Sprite = factory.builder(SpriteFactory.sprites.downWalkingPlayer); player = currentPlayer; }
public RightIdleState(Player currentPlayer) { ISpriteFactory factory = new SpriteFactory(); Sprite = factory.builder(SpriteFactory.sprites.rightIdlePlayer); player = currentPlayer; }
public UniversalGUI(Game1 game) { this.game = game; columnOne = new List <KeyValuePair <ICommands, string> >(); columnTwo = new List <KeyValuePair <ICommands, string> >(); defaultOne = new List <KeyValuePair <ICommands, string> >(); defaultTwo = new List <KeyValuePair <ICommands, string> >(); graphicHolder = new List <KeyValuePair <Texture2D, Rectangle> >(); font = Game1.gameContent.Load <SpriteFont>("Fonts/guiFont"); factory = new SpriteFactory(); arrow = factory.builder(SpriteFactory.sprites.arrow); }
public UniversalGUI(Game1 game) { this.game = game; columnOne = new List<KeyValuePair<ICommands, string>>(); columnTwo = new List<KeyValuePair<ICommands, string>>(); defaultOne = new List<KeyValuePair<ICommands, string>>(); defaultTwo = new List<KeyValuePair<ICommands, string>>(); graphicHolder = new List<KeyValuePair<Texture2D, Rectangle>>(); font = Game1.gameContent.Load<SpriteFont>("Fonts/guiFont"); factory = new SpriteFactory(); arrow = factory.builder(SpriteFactory.sprites.arrow); }
public RightWalkingState(Player currentPlayer) { ISpriteFactory factory = new SpriteFactory(); Sprite = factory.builder(SpriteFactory.sprites.rightWalkingPlayer); player = currentPlayer; }
public UpIdleState(Player currentPlayer) { ISpriteFactory factory = new SpriteFactory(); Sprite = factory.builder(SpriteFactory.sprites.upIdlePlayer); player = currentPlayer; }