cz.cuni.amis.pogamut.defcon.ai.buildingai
Class AbstractBuildingAI<T extends DefConUnitObject<?>>

Package class diagram package AbstractBuildingAI
java.lang.Object
  extended by cz.cuni.amis.pogamut.defcon.ai.AbstractAI
      extended by cz.cuni.amis.pogamut.defcon.ai.buildingai.AbstractBuildingAI<T>
Type Parameters:
T -
All Implemented Interfaces:
IBuildingAI, IUnitAI

public abstract class AbstractBuildingAI<T extends DefConUnitObject<?>>
extends AbstractAI
implements IBuildingAI

Implements common features for buildings.

Author:
Radek 'Black_Hand' Pibil

Field Summary
protected  T building
           
protected  int nukes
           
 
Fields inherited from class cz.cuni.amis.pogamut.defcon.ai.AbstractAI
logic, unitId, worldObjectId
 
Constructor Summary
AbstractBuildingAI(T building, DefConAgentLogicController<?> logic)
           
 
Method Summary
 DefConLocation getLocation()
          Retrieves location of the controlled object.
protected  boolean hasSpareNukes()
           
 
Methods inherited from class cz.cuni.amis.pogamut.defcon.ai.AbstractAI
act, dispose, getId, receiveMessage
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface cz.cuni.amis.pogamut.defcon.ai.IUnitAI
dispose, getId, receiveMessage, update
 

Field Detail

building

protected final T extends DefConUnitObject<?> building

nukes

protected int nukes
Constructor Detail

AbstractBuildingAI

public AbstractBuildingAI(T building,
                          DefConAgentLogicController<?> logic)
Method Detail

hasSpareNukes

protected boolean hasSpareNukes()

getLocation

public DefConLocation getLocation()
Description copied from interface: IUnitAI
Retrieves location of the controlled object.

Specified by:
getLocation in interface IUnitAI
Returns:
location


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