Beispiel #1
0
 public bool add_crash_obj(crash_obj obj_temp)
 {
     if (isEmpty(obj_temp))
     {
         _crash_objs[obj_temp._pos._x, obj_temp._pos._z, obj_temp._pos._y]._crash_obj = obj_temp;
         return true;
     }
     else
     {
         return false;
     }
 }
Beispiel #2
0
 private bool isEmpty(crash_obj obj_temp)
 {
     if (_crash_objs[obj_temp._pos._x, obj_temp._pos._z, obj_temp._pos._y]._crash_obj == null)
     {
         return true;
     }
     return false;
 }
Beispiel #3
0
 public crash_obj create_crash_obj(int x, int y)
 {
     crash_obj obj = new crash_obj();
     obj._pos._x = x;
     obj._pos._y = y;
     obj._pos._z = 9;
     //add_crash_obj(obj);
     return obj;
 }