예제 #1
0
        public DownWalkingState(Player currentPlayer)
        {
            ISpriteFactory factory = new SpriteFactory();

            Sprite = factory.builder(SpriteFactory.sprites.downWalkingPlayer);
            player = currentPlayer;
        }
예제 #2
0
        public RightIdleState(Player currentPlayer)
        {
            ISpriteFactory factory = new SpriteFactory();

            Sprite = factory.builder(SpriteFactory.sprites.rightIdlePlayer);
            player = currentPlayer;
        }
예제 #3
0
 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);
 }
예제 #4
0
 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);
 }
예제 #5
0
 public RightWalkingState(Player currentPlayer)
 {
     ISpriteFactory factory = new SpriteFactory();
     Sprite = factory.builder(SpriteFactory.sprites.rightWalkingPlayer);
     player = currentPlayer;
 }
예제 #6
0
 public UpIdleState(Player currentPlayer)
 {
     ISpriteFactory factory = new SpriteFactory();
     Sprite = factory.builder(SpriteFactory.sprites.upIdlePlayer);
     player = currentPlayer;
 }