Exemplo n.º 1
0
 @Override
 public void notifyListener(ModelListener listener, CurseOfMalphamondModelImpl model) {
   listener.characterChanged(
       model.getCurrentActivePlayer().getCharacter(),
       model.getCurrentActivePlayer().getUsername(),
       model.getCurrentActivePlayer().getUsername() + this.getDescription());
   // listener.characterChanged(model.getCurrentActivePlayer().getCharacter(),
   // model.getCurrentActivePlayer().getUsername(), null);
 }
Exemplo n.º 2
0
 @Override
 public void play(CurseOfMalphamondModelImpl model, int choice) {
   (new MoveNumTilesAction(4, model.getCurrentActivePlayer())).act();
 }