Package game

Examples of game.HumanController


    this.world = world;
  }

  public void worldClick(Point location, boolean button1)
  {
    HumanController controller = ((HumanController)world.getHumanController());
    if(BuildingSelected.Wall == buildingSelected)
    {
      if(button1) controller.createWallAtPoint(location);
      else controller.deleteWallAtPoint(location);
    }
    else if(BuildingSelected.Turret == buildingSelected)
    {
      if(button1) controller.createTurretAtPoint(location);
      else controller.deleteTurretAtPoint(location);
    }
  }
View Full Code Here

TOP

Related Classes of game.HumanController

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.