public void changeMap(int map_id) { this.map_id = map_id; map.reload(); map.updateTileset(map_id); map.setCenterCharacter(centerCharacter); map.addEntity(centerCharacter); Network.getInstance() .send(new GamePacket(GamePacket.changeMap, centerCharacter.getEntityId(), map_id)); }
public void setCenterCharacter(Character character) { this.centerCharacter = character; map.setCenterCharacter(character); }