SteeringStuff
Class RaycastingManager

Package class diagram package RaycastingManager
java.lang.Object
  extended by SteeringStuff.RaycastingManager

public class RaycastingManager
extends Object

This class provides the rays of the bot in the navigation layer. The rays could be changed more times (actually two steerings use rays).

Author:
Marki

Field Summary
 Raycasting raycasting
           
 
Constructor Summary
RaycastingManager(UT2004Bot botself, Raycasting raycasting)
          Creates the new RaycastingManager of the botself with the raycasting module.
 
Method Summary
 void addRayFlagChangedListener(SteeringType type, IRaysFlagChanged listener)
          Adds new ISteeringPropertiesChangedListener - he will listen for changes in some steering properties.
 void addRays(SteeringType type, LinkedList<SteeringRay> rayList, IRaysFlagChanged listener)
          Adds rays of the type.
 HashMap<String,Future<AutoTraceRay>> getMyFutureRays(SteeringType type)
          Returns the futureRays of the type.
 void notifyRayFlagChangedListeners()
          Notify the listneres, that the steering properties were changed.
 boolean raysAreReady()
          Returns whether the rays are ready (the flag of getAllRaysInitialized).
 void removeRays(SteeringType type)
          The rays of the type will be removed.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

raycasting

public Raycasting raycasting
Constructor Detail

RaycastingManager

public RaycastingManager(UT2004Bot botself,
                         Raycasting raycasting)
Creates the new RaycastingManager of the botself with the raycasting module.

Method Detail

addRayFlagChangedListener

public void addRayFlagChangedListener(SteeringType type,
                                      IRaysFlagChanged listener)
Adds new ISteeringPropertiesChangedListener - he will listen for changes in some steering properties.


notifyRayFlagChangedListeners

public void notifyRayFlagChangedListeners()
Notify the listneres, that the steering properties were changed.


addRays

public void addRays(SteeringType type,
                    LinkedList<SteeringRay> rayList,
                    IRaysFlagChanged listener)
Adds rays of the type. The rays are in the rayList. The listener will be added.


removeRays

public void removeRays(SteeringType type)
The rays of the type will be removed.


getMyFutureRays

public HashMap<String,Future<AutoTraceRay>> getMyFutureRays(SteeringType type)
Returns the futureRays of the type.


raysAreReady

public boolean raysAreReady()
Returns whether the rays are ready (the flag of getAllRaysInitialized).



Copyright © 2013 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.