|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IUT2004Analyzer
Interface of the analyzer that should hook an IUT2004AnalyzerObserver
agent onto
every bot inside UT2004 game sniffing info about the bot.
Method Summary | |
---|---|
void |
addListener(IAnalyzerObserverListener listener)
Hooks a listener that watches for creation/deletion of observers. |
java.util.Map<UnrealId,IUT2004AnalyzerObserver> |
getObservers()
Returns all observers currently owned by the analyzer. |
boolean |
isListening(IAnalyzerObserverListener listener)
Tests a listener whether it watches for creation/deletion of observers. |
void |
removeListener(IAnalyzerObserverListener listener)
Removes a listener that watches for creation/deletion of observers. |
Methods inherited from interface cz.cuni.amis.pogamut.ut2004.server.IUT2004Server |
---|
connectNativeBot, getAvailableMaps, getGameSpeedFlag, getMap, getMapName, getMutators, getNativeAgents, getPlayers, setAddress, setGameMap |
Methods inherited from interface cz.cuni.amis.pogamut.base.server.IWorldServer |
---|
getWorldAddress |
Methods inherited from interface cz.cuni.amis.pogamut.base.server.IWorldAgentsObserver |
---|
getAgents |
Methods inherited from interface cz.cuni.amis.pogamut.base.agent.IGhostAgent |
---|
getAct |
Methods inherited from interface cz.cuni.amis.pogamut.base.agent.IObservingAgent |
---|
getWorldView |
Methods inherited from interface cz.cuni.amis.pogamut.base.agent.IAgent |
---|
getComponentId, getIntrospection, getLogger, getName, getState, kill, pause, resume, start, startPaused, stop |
Methods inherited from interface cz.cuni.amis.pogamut.base.component.IComponentAware |
---|
getEventBus |
Method Detail |
---|
java.util.Map<UnrealId,IUT2004AnalyzerObserver> getObservers()
The id can be obtained for instance from Player.getId()
or Self.getId()
or new one can be obtained from String
via UnrealId.get(String)
.
NOTE: returns unmodifiable map that is a copy of the inner map inside the analyzer.
void addListener(IAnalyzerObserverListener listener)
WeakReference
is used to store the listener reference!)
listener
- void removeListener(IAnalyzerObserverListener listener)
listener
- boolean isListening(IAnalyzerObserverListener listener)
listener
-
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |