cz.cuni.amis.pogamut.defcon.ai
Interface IUnitAI

Package class diagram package IUnitAI
All Known Subinterfaces:
IBuildingAI, IFleetAI
All Known Implementing Classes:
AbstractAI, AbstractBuildingAI

public interface IUnitAI

Topmost interface for unit AI.

Author:
Radek 'Black_Hand' Pibil

Method Summary
 void dispose()
          Unregisters ai from all places.
 cz.cuni.amis.pogamut.base.communication.worldview.object.WorldObjectId getId()
          Returns the WorldObjectId of the associated unit.
 DefConLocation getLocation()
          Retrieves location of the controlled object.
 void receiveMessage(IMessage message)
          Receives a message from mailbox.
 void update()
          Update method called before the main AI.
 

Method Detail

update

void update()
Update method called before the main AI.


receiveMessage

void receiveMessage(IMessage message)
Receives a message from mailbox.

Parameters:
message -

getId

cz.cuni.amis.pogamut.base.communication.worldview.object.WorldObjectId getId()
Returns the WorldObjectId of the associated unit.

Returns:

dispose

void dispose()
Unregisters ai from all places. ALWAYS CALL SUPER.DISPOSE!


getLocation

DefConLocation getLocation()
Retrieves location of the controlled object.

Returns:
location


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