Package squaresgame.GameController

Examples of squaresgame.GameController.SquarePlacedEvent


  }

  @Override
  public void onEvent(Event e) {
    if(e != null && e.getType().equals("SquarePlaced")){
      SquarePlacedEvent lineEvent = (SquarePlacedEvent) e;
      if(lineEvent.getSquare() != null && lineEvent.getSquare().equals(this.square)){
        SpriteComponent squareSprite = (SpriteComponent) ComponentSystem.getInstance().getComponentWithTypeAndLabel(SquareGenerator.getSquareLabel(square), SpriteComponent.class);
        if(squareSprite != null){
          squareSprite.setImageFilename(ColourManager.getSquareForPlayer(square.getOwningPlayer().getId()), true);
        }
      }
View Full Code Here

TOP

Related Classes of squaresgame.GameController.SquarePlacedEvent

Copyright © 2018 www.massapicom. 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.