예제 #1
0
        public RightIdleTeno(Teno teno)
        {
            ISpriteFactory factory = new SpriteFactory();

            Sprite    = factory.build(SpriteFactory.sprites.rightIdleTeno);
            this.teno = teno;
        }
예제 #2
0
        public LeftMovingTeno(Teno teno)
        {
            ISpriteFactory factory = new SpriteFactory();

            Sprite    = factory.build(SpriteFactory.sprites.leftMovingTeno);
            this.teno = teno;
        }
예제 #3
0
        public LeftIdleTeno(Teno teno, Game1 game)
        {
            this.game = game;
            ISpriteFactory factory = new SpriteFactory();

            Sprite    = factory.build(SpriteFactory.sprites.leftIdleTeno);
            this.teno = teno;
        }
예제 #4
0
        public RightMovingTeno(Teno teno, Game1 game)
        {
            this.game = game;
            ISpriteFactory factory = new SpriteFactory();

            Sprite    = factory.build(SpriteFactory.sprites.rightRunTeno);
            this.teno = teno;
        }
예제 #5
0
        public DeadTeno(Teno teno)
        {
            ISpriteFactory factory = new SpriteFactory();

            Sprite    = factory.build(SpriteFactory.sprites.deadTeno);
            this.teno = teno;
            Game1.GetInstance().gameState = new DeadGameState(teno);
        }
예제 #6
0
        public DeadTeno(Teno teno, Game1 game)
        {
            this.game = game;
            ISpriteFactory factory = new SpriteFactory();

            if (teno.state.GetType().Equals(new RightCrouchingTeno(teno, game).GetType()) || teno.state.GetType().Equals(new RightFallingTeno(teno, game).GetType()) ||
                teno.state.GetType().Equals(new RightIdleTeno(teno, game).GetType()) || teno.state.GetType().Equals(new RightJumpingTeno(teno, game).GetType()) ||
                teno.state.GetType().Equals(new RightMovingTeno(teno, game).GetType()))
            {
                Sprite = factory.build(SpriteFactory.sprites.rightDeadTeno);
            }
            else
            {
                Sprite = factory.build(SpriteFactory.sprites.leftDeadTeno);
            }
            this.teno      = teno;
            game.gameState = new DeadGameState(teno, game);
        }
예제 #7
0
        public GUI(Game1 game)
        {
            this.game = game;
            options   = new List <KeyValuePair <ICommands, String> >();
            font      = Game1.gameContent.Load <SpriteFont>(StringHolder.hudPauseFont);
            factory   = new SpriteFactory();
            coin      = factory.build(SpriteFactory.sprites.star);

            //options.AddRange(new LoadLevelCommand(game.level.levelCurrent, game), "Level 1");
        }
예제 #8
0
 public TitleScreenGameState()
 {
     factory = new SpriteFactory();
     logo    = factory.build(SpriteFactory.sprites.title);
     //SoundManager.PlaySong(SoundManager.songs.title);
     game = Game1.GetInstance();
     menu = new GUI(game);
     menu.options.Add(new KeyValuePair <ICommands, String>(new LoadLevelCommand(StringHolder.levelOne), "Level 1"));
     menu.options.Add(new KeyValuePair <ICommands, String>(new LoadLevelCommand(StringHolder.levelTwo), "Level 2"));
     menu.options.Add(new KeyValuePair <ICommands, String>(new LoadLevelCommand(StringHolder.levelThree), "Level 3"));
     menu.options.Add(new KeyValuePair <ICommands, String>(new LoadAchPageCommand(), "Achievements"));
     menu.options.Add(new KeyValuePair <ICommands, String>(new QuitCommand(), "Quit"));
     menu.currentCommand     = menu.options[0].Key;
     game.keyboardController = new TitleKeyController(menu);
 }
예제 #9
0
        public RightGiaiTichState()
        {
            ISpriteFactory factory = new SpriteFactory();

            sprite = factory.build(SpriteFactory.sprites.rightGiaiTich);
        }
예제 #10
0
        public RightSmashedDinoState()
        {
            ISpriteFactory factory = new SpriteFactory();

            sprite = factory.build(SpriteFactory.sprites.walkingRightSquishedDino);
        }
예제 #11
0
        public RightLy2State()
        {
            ISpriteFactory factory = new SpriteFactory();

            sprite = factory.build(SpriteFactory.sprites.rightLy2);
        }
예제 #12
0
        public LeftTallDinoState()
        {
            ISpriteFactory factory = new SpriteFactory();

            sprite = factory.build(SpriteFactory.sprites.walkingLeftDino);
        }
예제 #13
0
        public DeadShellessKS()
        {
            ISpriteFactory factory = new SpriteFactory();

            sprite = factory.build(SpriteFactory.sprites.deadShellessKoopa);
        }
예제 #14
0
        public LeftDeadGiaiTichState()
        {
            ISpriteFactory factory = new SpriteFactory();

            sprite = factory.build(SpriteFactory.sprites.leftDeadGiaiTich);
        }
예제 #15
0
        public RightWalkingShellessKS()
        {
            ISpriteFactory factory = new SpriteFactory();

            sprite = factory.build(SpriteFactory.sprites.rightWalkShellessKoopa);
        }
예제 #16
0
        public LeftDeadSXTKState()
        {
            ISpriteFactory factory = new SpriteFactory();

            sprite = factory.build(SpriteFactory.sprites.leftDeadSXTK);
        }
예제 #17
0
파일: Teno.cs 프로젝트: PhamCaoLuong/OOP
 public void MakeVictoryTeno()
 {
     state.Sprite = factory.build(SpriteFactory.sprites.victoryTeno);
 }
예제 #18
0
        public DeadDinoState()
        {
            ISpriteFactory factory = new SpriteFactory();

            sprite = factory.build(SpriteFactory.sprites.leftDeadDino);
        }
예제 #19
0
        public LeftDeadHoaDCState()
        {
            ISpriteFactory factory = new SpriteFactory();

            sprite = factory.build(SpriteFactory.sprites.leftDeadHoaDC);
        }
예제 #20
0
        public RightDeadSXTKState()
        {
            ISpriteFactory factory = new SpriteFactory();

            sprite = factory.build(SpriteFactory.sprites.rightDeadSXTK);
        }