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); } } }
public void insertNPCAtLocation(NPC npc, int y, int x) { npcMap[y, x] = npc; }