public RightIdleTeno(Teno teno) { ISpriteFactory factory = new SpriteFactory(); Sprite = factory.build(SpriteFactory.sprites.rightIdleTeno); this.teno = teno; }
public LeftMovingTeno(Teno teno) { ISpriteFactory factory = new SpriteFactory(); Sprite = factory.build(SpriteFactory.sprites.leftMovingTeno); this.teno = teno; }
public LeftIdleTeno(Teno teno, Game1 game) { this.game = game; ISpriteFactory factory = new SpriteFactory(); Sprite = factory.build(SpriteFactory.sprites.leftIdleTeno); this.teno = teno; }
public RightMovingTeno(Teno teno, Game1 game) { this.game = game; ISpriteFactory factory = new SpriteFactory(); Sprite = factory.build(SpriteFactory.sprites.rightRunTeno); this.teno = teno; }
public DeadTeno(Teno teno) { ISpriteFactory factory = new SpriteFactory(); Sprite = factory.build(SpriteFactory.sprites.deadTeno); this.teno = teno; Game1.GetInstance().gameState = new DeadGameState(teno); }
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); }
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"); }
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); }
public RightGiaiTichState() { ISpriteFactory factory = new SpriteFactory(); sprite = factory.build(SpriteFactory.sprites.rightGiaiTich); }
public RightSmashedDinoState() { ISpriteFactory factory = new SpriteFactory(); sprite = factory.build(SpriteFactory.sprites.walkingRightSquishedDino); }
public RightLy2State() { ISpriteFactory factory = new SpriteFactory(); sprite = factory.build(SpriteFactory.sprites.rightLy2); }
public LeftTallDinoState() { ISpriteFactory factory = new SpriteFactory(); sprite = factory.build(SpriteFactory.sprites.walkingLeftDino); }
public DeadShellessKS() { ISpriteFactory factory = new SpriteFactory(); sprite = factory.build(SpriteFactory.sprites.deadShellessKoopa); }
public LeftDeadGiaiTichState() { ISpriteFactory factory = new SpriteFactory(); sprite = factory.build(SpriteFactory.sprites.leftDeadGiaiTich); }
public RightWalkingShellessKS() { ISpriteFactory factory = new SpriteFactory(); sprite = factory.build(SpriteFactory.sprites.rightWalkShellessKoopa); }
public LeftDeadSXTKState() { ISpriteFactory factory = new SpriteFactory(); sprite = factory.build(SpriteFactory.sprites.leftDeadSXTK); }
public void MakeVictoryTeno() { state.Sprite = factory.build(SpriteFactory.sprites.victoryTeno); }
public DeadDinoState() { ISpriteFactory factory = new SpriteFactory(); sprite = factory.build(SpriteFactory.sprites.leftDeadDino); }
public LeftDeadHoaDCState() { ISpriteFactory factory = new SpriteFactory(); sprite = factory.build(SpriteFactory.sprites.leftDeadHoaDC); }
public RightDeadSXTKState() { ISpriteFactory factory = new SpriteFactory(); sprite = factory.build(SpriteFactory.sprites.rightDeadSXTK); }