예제 #1
0
 public Game(IPlayer player)
 {
     TurnNumber      = 0;
     _locations      = new GameLocations(this);
     _events         = new GameEvents();
     CurrentPhase    = new NotStarted(this);
     _players        = new List <IPlayer>();
     _startingPlayer = player;
 }
예제 #2
0
파일: Map.cs 프로젝트: vygantas1998/snake
 public Map()
 {
     Obstacles = new List <Obstacle>();
     PowerUps  = new PowerUpCollection();
     Width     = 1000;
     Height    = 969;
     Level     = LevelFactory.CreateLevel();
     Snakes    = new List <SnakeBody>();
     Scores    = new List <Score>();
     gameState = new NotStarted();
     ClearMap();
 }