示例#1
0
 public void putGameCharacter(GameCharacter mob, Position pos) {
   getCell(pos).setGameCharacter(mob);
   mob.setPositionOnMap(new PositionOnMap(pos, this));
 }
示例#2
0
 public void removeGameCharacter(GameCharacter mob) {
   Preconditions.checkState(mob.getMap().equals(this));
   MapCell cell = getCell(mob.getPosition());
   mob.setPositionOnMap(null);
   cell.setGameCharacter(null);
 }