Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public void moveCreature(Creature creature, Position oldPos, Position newPos) {
- this.gridWorld[newPos.getColumnValue()][newPos.getRowValue()].add(creature);
- this.gridWorld[oldPos.getColumnValue()][oldPos.getRowValue()].remove(creature);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement