Exemplo n.º 1
0
        public void addNewCivilian(Civilian civilian)
        {
            Point civilianPosition =
                new Point(civilian.DrawableX, civilian.DrawableY);

            if (this.grid.GetGridPointFromMousePosition(civilianPosition, true).HasValue)
            {
                civilians.Add(civilian);
            }
            else
            {
                throw new Exception("invalid civilian position");
            }
        }
Exemplo n.º 2
0
 public virtual void UseDropoff(Civilian character)
 {
     --RemainingUses;
     if (RemainingUses == 0)
     {
         CurrentState = DropoffState.Used;
     }
 }
Exemplo n.º 3
0
 public void addCivillian(Civilian civillian)
 {
     civilians.Add(civillian);
 }