Package com.pointcliki.grid

Examples of com.pointcliki.grid.GridManager$GridDispatcher


  @Override
  public void configureManagers() {
    super.configureManagers();
   
    fPlayerManager = new GruntzPlayerManager(this);
    fGridManager = new GridManager(this, new Vector2f(32f, 32f), new Vector2f(16f, 16f));
    fMapManager = new MapManager(this);
    fPressureManager = new PressureManager(this);
    fEffectManager = new EffectManager(this);
   
    fManagers.put(PlayerManager.class, fPlayerManager);
View Full Code Here


 
  @Override
  public void configureManagers() {
    super.configureManagers();
    fMapManager = new MapManager(this);
    fGridManager = new GridManager(this, new Vector2f(32f, 32f), new Vector2f(16f, 16f));
    fManagers.put(MapManager.class, fMapManager);
    fManagers.put(GridManager.class, fGridManager);
  }
View Full Code Here

  public void populateRedPyramidLogics(Logic logic) {
    if (fInitRedPyramids) return;
    fInitRedPyramids = true;
   
    GridManager gm = fMapManager.parent().manager(GridManager.class);
   
    // Iterate through tiles to find red pyramids
    for (int y = 0; y < fWidth; y++) {
      for (int x = 0; x < fHeight; x++) {
        GridCoordinate xy = new GridCoordinate(x, y);
       
        if (traits(xy).contains("redPyramid")) {
          // Check whether a logic has been placed here
          Effect e = gm.getFirstEntityOfTypeAt(xy, Effect.class);
          if (e == null) {
            try {
              Logic l = new Effect();
              JSONObject json = logic.exportToJSON();
              json.put("xy", (x * 32) + " " + (y * 32));
 
View Full Code Here

TOP

Related Classes of com.pointcliki.grid.GridManager$GridDispatcher

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.