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"); } }
public virtual void UseDropoff(Civilian character) { --RemainingUses; if (RemainingUses == 0) { CurrentState = DropoffState.Used; } }
public void addCivillian(Civilian civillian) { civilians.Add(civillian); }