Package squaresgame.GameController

Examples of squaresgame.GameController.LinePlacedEvent


  }

  @Override
  public void onEvent(Event e) {
    if(e != null && e.getType().equals("LinePlaced")){
      LinePlacedEvent lineEvent = (LinePlacedEvent) e;
      if(lineEvent.getLine() != null && lineEvent.getLine().equals(this.l)){
        SpriteComponent lineSprite = (SpriteComponent) ComponentSystem.getInstance().getComponentWithTypeAndLabel(GridLineGenerator.getLineLabel(l), SpriteComponent.class);
        if(lineSprite != null){
          lineSprite.setImageFilename(ColourManager.getLineForPlayer(lineEvent.getPlayerID()), true);
        }
      }
    }
  }
View Full Code Here

TOP

Related Classes of squaresgame.GameController.LinePlacedEvent

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.