SocialSteeringsBeta
Class TriangleSteer

Package class diagram package TriangleSteer
java.lang.Object
  extended by SocialSteeringsBeta.TriangleSteer
All Implemented Interfaces:
ISocialSteering, ISteering

public class TriangleSteer
extends Object
implements ISocialSteering

Author:
Petr

Field Summary
protected  UT2004Bot botself
           
protected  TriangleSteeringProperties properties
           
 
Constructor Summary
TriangleSteer(UT2004Bot botself)
           
 
Method Summary
 javax.vecmath.Vector3d run(javax.vecmath.Vector3d scaledActualVelocity, RefBoolean wantsToGoFaster, RefBoolean wantsToStop, RefLocation focus)
          The steering manager calls steering to compute the force of the steering in that tick (logic).
 SteeringResult runSocial(javax.vecmath.Vector3d scaledActualVelocity, RefBoolean wantsToGoFaster, RefBoolean wantsToStop, RefLocation focus)
           
 void setProperties(SteeringProperties newProperties)
          The steering manager will set to the steering his steering properties.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

botself

protected UT2004Bot botself

properties

protected TriangleSteeringProperties properties
Constructor Detail

TriangleSteer

public TriangleSteer(UT2004Bot botself)
Method Detail

run

public javax.vecmath.Vector3d run(javax.vecmath.Vector3d scaledActualVelocity,
                                  RefBoolean wantsToGoFaster,
                                  RefBoolean wantsToStop,
                                  RefLocation focus)
Description copied from interface: ISteering
The steering manager calls steering to compute the force of the steering in that tick (logic).

Specified by:
run in interface ISteering
Parameters:
scaledActualVelocity - This is the force of the last velocity, scaled by its weight. The steering can use this vector to create the decelerating force.
wantsToGoFaster - The steering should set this ref parameter, whether is possible to enlarge the velocity (wantsToGoFaster=true), or not.
wantsToStop - If steering want's to stop the agent, he can set this ref parameter to true.
focus - If the wantsToStop is true, steering can set the focus Location, which means the orientation of the stopped agent. (Agent will rotate to this location.)
Returns:
The computed steering force.

setProperties

public void setProperties(SteeringProperties newProperties)
Description copied from interface: ISteering
The steering manager will set to the steering his steering properties. That could be set also many times.

Specified by:
setProperties in interface ISteering
Parameters:
newProperties - the new steering properties

runSocial

public SteeringResult runSocial(javax.vecmath.Vector3d scaledActualVelocity,
                                RefBoolean wantsToGoFaster,
                                RefBoolean wantsToStop,
                                RefLocation focus)
Specified by:
runSocial in interface ISocialSteering


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