}
@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);
}
}
}
}