예제 #1
0
  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));
  }
예제 #2
0
 public Entity getEntityByEntityId(int id) {
   return map.getEntityByEntityId(id);
 }
예제 #3
0
 public boolean checkCollision(int x, int y) {
   return map.checkCollision(x, y);
 }
예제 #4
0
 public void setCenterCharacter(Character character) {
   this.centerCharacter = character;
   map.setCenterCharacter(character);
 }