예제 #1
0
 private bool create(int cost, BaseGameObject gameObject, char commandType, int x, int y)
 {
     return false;
 }
예제 #2
0
 private void attack(BaseGameObject gameObject,int x,int y)
 {
 }
예제 #3
0
        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;
            }
        }
예제 #4
0
 public bool isInRange(BaseGameObject BaseGameObject, int x, int y)
 {
     return isInRange(BaseGameObject, x, y, 0);
 }
예제 #5
0
 public void add(BaseGameObject element)
 {
     this.elements.Add(element);
     this.terrain[element.X, element.Y].elements.Add(element);
 }
예제 #6
0
 public void remove(BaseGameObject element)
 {
     this.elements.Remove(element);
     this.terrain[element.X, element.Y].elements.Remove(element);
 }