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.
 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

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 © 2012 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.