cz.cuni.amis.pogamut.ut2004.agent.navigation.navmesh.formation
Class Formation

Package class diagram package Formation
java.lang.Object
  extended by cz.cuni.amis.pogamut.ut2004.agent.navigation.navmesh.formation.Formation

public class Formation
extends Object

A class able to make agents hold formations

Author:
Jakub

Constructor Summary
Formation(UT2004BotModuleController bot)
           
 
Method Summary
 javax.vecmath.Vector2d getDirection()
           
 double getDistance()
           
 Player getLeader()
          Getters
 Location getLeaderLastSeenLocation()
           
 long getLeaderLastTimeSeen()
           
 void holdFormation()
          Makes the bot move to the proper place
 int howLongLeaderNotSeen()
          How many seconds did the bot not seen his leader?
 void setDirection(javax.vecmath.Vector2d direction)
           
 void setDistance(double distance)
           
 void setLeader(Player leader)
          Setters
 void updateLeaderInfo()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Formation

public Formation(UT2004BotModuleController bot)
          throws Exception
Throws:
Exception
Method Detail

holdFormation

public void holdFormation()
Makes the bot move to the proper place


updateLeaderInfo

public void updateLeaderInfo()

howLongLeaderNotSeen

public int howLongLeaderNotSeen()
How many seconds did the bot not seen his leader?

Returns:

setLeader

public void setLeader(Player leader)
Setters


setDirection

public void setDirection(javax.vecmath.Vector2d direction)

setDistance

public void setDistance(double distance)

getLeader

public Player getLeader()
Getters


getDirection

public javax.vecmath.Vector2d getDirection()

getDistance

public double getDistance()

getLeaderLastSeenLocation

public Location getLeaderLastSeenLocation()

getLeaderLastTimeSeen

public long getLeaderLastTimeSeen()


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