예제 #1
0
 public Arena(ref Hashtable map)
 {
     //Get the hashed pictureboxes by reference
     obj_map = new GameObject[Arena.size, Arena.size];
     this.map = map;
     Arena.arena = this;
     for(int i=0; i< Arena.size; i++)
     {
         for(int j=0; j< Arena.size; j++)
         {
             obj_map[i,j] = new Floor(i,j);
         }
     }
 }
예제 #2
0
 public static void AddGameObjectRef(int x_cordinate, int y_cordinate,ref GameObject obj)
 {
     obj_map[y_cordinate, x_cordinate] = obj;
 }
예제 #3
0
 public static void AddGameObject(int x_cordinate, int y_cordinate, GameObject obj)
 {
     //Adding game objects to the arena
     obj_map[y_cordinate, x_cordinate] = obj;
 }