Examples of PlayerChangeEvent


Examples of ch.sahits.game.event.PlayerChangeEvent

  public GameStatus(Rectangle rect,IClient client) {
    super(rect);
    this.client = client;
    opPainter = DisplayImageDIResolver.getInstance().getOpenPatricianPainter();
    gameUpdate(new TimeChangeEvent(), null);
    gameUpdate(new PlayerChangeEvent(), EPlayerStateChange.MONEY);
    Event.add(this);
  }
View Full Code Here

Examples of ch.sahits.game.event.PlayerChangeEvent

   * @param diff amount of money that is transferred
   */
  @Override
  public void updateCash(long diff){
    cash += diff;
    new PlayerChangeEvent().notify(EPlayerStateChange.MONEY);
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.