/** * Execute the introduce message and send the decoded data to the rest of the client. * * @return true if the execution is done, false if it shall be called again */ @Override public boolean executeUpdate() { final Char chara = World.getPeople().getCharacter(charId); if (chara != null) { chara.setName(text); } return true; }
@Override public void onStartScreen() { AnnotationProcessor.process(this); Player player = World.getPlayer(); Char playerChar = player.getCharacter(); hitPoints = playerChar.getAttribute(CharacterAttribute.HitPoints); foodPoints = playerChar.getAttribute(CharacterAttribute.FoodPoints); manaPoints = playerChar.getAttribute(CharacterAttribute.ManaPoints); }