Ejemplo n.º 1
0
 public void EndTurn()
 {
     NotificationList.Clear();
     Settlements.EndTurn();
     Stacks.EndTurn();
     _turnNumber++;
 }
Ejemplo n.º 2
0
        public World(int numberOfColumns, int numberOfRows, Faction faction)
        {
            _turnNumber = 0;

            HexLibrary       = new HexLibrary(HexType.FlatTopped, OffsetCoordinatesType.Odd, 64.0f); // new HexLibrary(HexType.PointyTopped, OffsetCoordinatesType.Odd, 64.0f);
            OverlandMap      = new OverlandMap(numberOfColumns, numberOfRows);
            NotificationList = new NotificationList();

            PlayerFaction = faction;
            Settlements   = new Settlements();
            Stacks        = new Stacks();
        }
Ejemplo n.º 3
0
        public bool IsSeenByPlayer(Settlements settlements, Stacks stacks)
        {
            foreach (var settlement in settlements)
            {
                if (settlement.CanSeeCell(this))
                {
                    return(true);
                }
            }

            foreach (var stack in stacks)
            {
                if (stack.CanSeeCell(this))
                {
                    return(true);
                }
            }

            return(false);
        }