public SinglePlayState(IGameStateController parentGameStateController, string name, LevelDifficult levelDifficult) : base(parentGameStateController)
 {
     _characterName   = name;
     _parentTransform = new GameObject("SinglePlayer").transform;
     _items           = new List <Item>();
     _levelData       = ItemFactory.Instance.CreateLevelData(levelDifficult);
 }
Beispiel #2
0
 public RotationGame(IContainer container, IBoard board, IBoardFiller boardFiller, IGameEventDispatcher gameEventDispatcher, IAnimationEngine animationEngine, IGameStateController gameStateController)
 {
     _container = container;
     graphics = new GraphicsDeviceManager(this);
     Content.RootDirectory = "Content";
     _board = board;
     _boardFiller = boardFiller;
     _animationEngine = animationEngine;
     _gameStateController = gameStateController;
     GameEvents.Dispatcher = gameEventDispatcher;
 }
Beispiel #3
0
 public BaseGameState(IGameStateController parentGameStateController)
 {
     _parentGameStateController = parentGameStateController;
 }
Beispiel #4
0
 public PlayState(IGameStateController parentGameStateController, IPlayStateUI playStateUI) : base(parentGameStateController)
 {
     _character      = CharacterFactory.Instance.CreateCharacter();
     _abilityManager = new AbilityManager();
     _playStateUI    = playStateUI;
 }
Beispiel #5
0
 public MenuState(IGameStateController parentGameStateController) : base(parentGameStateController)
 {
 }
Beispiel #6
0
 public StoryState(IGameStateController parentGameStateController) : base(parentGameStateController)
 {
 }
Beispiel #7
0
 public IGameState CreateMenuState(IGameStateController gameStateController, IMenuStateUI menuUI)
 {
     return(new MenuState(gameStateController, menuUI));
 }
Beispiel #8
0
 public IGameState CreatePlayState(IGameStateController gameStateController, IPlayStateUI playStateUI)
 {
     return(new PlayState(gameStateController, playStateUI));
 }
Beispiel #9
0
 public MenuState(IGameStateController parentGameStateController, IMenuStateUI menuUI) : base(parentGameStateController)
 {
     _menuUI = menuUI;
 }