private bool create(int cost, BaseGameObject gameObject, char commandType, int x, int y) { return false; }
private void attack(BaseGameObject gameObject,int x,int y) { }
public bool isInRange(BaseGameObject BaseGameObject, int x, int y, int mod) { int dx = Math.Abs(BaseGameObject.X - x); int dy = Math.Abs(BaseGameObject.Y - y); if ((dx + dy) <= (((Unit)BaseGameObject).Move + mod)) { if(true) {} return true; } else { return false; } }
public bool isInRange(BaseGameObject BaseGameObject, int x, int y) { return isInRange(BaseGameObject, x, y, 0); }
public void add(BaseGameObject element) { this.elements.Add(element); this.terrain[element.X, element.Y].elements.Add(element); }
public void remove(BaseGameObject element) { this.elements.Remove(element); this.terrain[element.X, element.Y].elements.Remove(element); }