Package soc.qase.state

Examples of soc.qase.state.Entity


  public void runAI(World world)
  {
    setAction(Action.ATTACK, false);

    // get the nearest item of any kind
    Entity nearestItem = getNearestItem(null, null);

    if(nearestItem != null)
    {
      pos.set(getPosition());
      itemPos.set(nearestItem.getOrigin());

      itemDir.sub(itemPos, pos);
      setBotMovement(itemDir, null, 200, PlayerMove.POSTURE_NORMAL);
    }
  }
View Full Code Here

TOP

Related Classes of soc.qase.state.Entity

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.