9.8 WorldObject

WorldObject contains the information pertaining to a single gameobject this includes :

  • pos.setVecPosition( 0, 0, 0 ); // current position of the gameobject
  • orien = 0;
  • absVel.setX(0); // currently only used for ball and opponent velocities
  • absVel.setY(0); // currently only used for ball and opponent velocities
  • id = -1;
  • currentlySeen = false;
  • cycleLastSeen = -1;
  • timeLastSeen = -1;
  • currentlySeenOrien = false;
  • cycleOrienLastSeen = -1;
  • timeOrienLastSeen = -1;
  • validPosition = false;
  • sighting.setVecPosition(0,0,0);
  • sightingOrien = 0;
  • haveSighting = false;
  • sightingTime = -1;
  • sightingUNum = 0;