예제 #1
0
파일: PlayerTests.cs 프로젝트: pvh/dominate
        public void TestSimpleDominanceScore()
        {
            Map m = new Map();
            Player p = new Player(Animal.Insect);

            // Create a known dominance
            var tile = m.tiles[3,3];
            tile.Terrain = Tile.TerrainType.Mountain;
            var chits = m.ChitsFor(tile);
            chits[0].Element = Chit.ElementType.Grass;
            tile.Species[(int) Animal.Insect] = 1;

            // Dominance should be 2
            Assert.AreEqual(2, p.DominationScoreOn(m, tile));
        }
예제 #2
0
 public void PlaceActionPawn(Player player, ActionSpace space)
 {
     space.Player = player;
 }
예제 #3
0
 public void AddElementToPlayer(Player player, Chit.ElementType element)
 {
     player.Adapt(element);
 }