Advertisement
Guest User

Untitled

a guest
May 5th, 2016
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. public void moveCreature(Creature creature, Position oldPos, Position newPos) {
  2. this.gridWorld[newPos.getColumnValue()][newPos.getRowValue()].add(creature);
  3. this.gridWorld[oldPos.getColumnValue()][oldPos.getRowValue()].remove(creature);
  4.  
  5. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement