Ejemplo n.º 1
0
 public void insertNPC(NPC npc, int y, int x, int height, int width)
 {
     fillRectangle(true, y, x, height, width);
     for (int i = y; i < height + y; i++)
     {
         for (int j = x; j < width + x; j++)
         {
             insertNPCAtLocation(npc, i, j);
         }
     }
 }
Ejemplo n.º 2
0
 public void insertNPCAtLocation(NPC npc, int y, int x)
 {
     npcMap[y, x] = npc;
 }