cz.cuni.amis.pogamut.defcon.communication.worldview
Class DefConWorldView
java.lang.Object
cz.cuni.amis.pogamut.base.communication.worldview.impl.AbstractWorldView
cz.cuni.amis.pogamut.base.communication.worldview.impl.EventDrivenWorldView
cz.cuni.amis.pogamut.base3d.worldview.impl.VisionWorldView
cz.cuni.amis.pogamut.base3d.worldview.impl.BatchAwareWorldView
cz.cuni.amis.pogamut.base3d.worldview.impl.LockableBatchAwareWorldView
cz.cuni.amis.pogamut.defcon.communication.worldview.DefConWorldView
- All Implemented Interfaces:
- ILockableWorldView, IWorldChangeEventInput, IWorldView, IComponent, IVisionWorldView
public class DefConWorldView
- extends LockableBatchAwareWorldView
Worldview implementation specific for defcon.
- Author:
- Radek 'Black_Hand' Pibil
| Methods inherited from class cz.cuni.amis.pogamut.base.communication.worldview.impl.AbstractWorldView |
addEventListener, addObjectListener, addObjectListener, addObjectListener, addObjectListener, addWorldObject, get, get, get, getAll, getAll, getComponentId, getEventBus, getLog, getSingle, isListening, isListening, isListening, isListening, isListening, isListening, isPaused, isRunning, kill, pause, prePause, preStop, removeEventListener, removeListener, removeObjectListener, removeObjectListener, removeObjectListener, removeObjectListener, removeWorldObject, reset, resume, start, stop, toString |
| Methods inherited from interface cz.cuni.amis.pogamut.base.communication.worldview.IWorldView |
addEventListener, addObjectListener, addObjectListener, addObjectListener, addObjectListener, get, get, get, getAll, getAll, getEventBus, getSingle, isListening, isListening, isListening, isListening, isListening, isListening, removeEventListener, removeListener, removeObjectListener, removeObjectListener, removeObjectListener, removeObjectListener |
WORLDVIEW_DEPENDENCY
public static final String WORLDVIEW_DEPENDENCY
- See Also:
- Constant Field Values
DefConWorldView
@Inject
public DefConWorldView(ComponentDependencies dependencies,
DefConMessageProducer messageProducer,
IComponentBus bus,
IAgentLogger log)
isBatchBeginEvent
protected boolean isBatchBeginEvent(IWorldChangeEvent evt)
- Specified by:
isBatchBeginEvent in class LockableBatchAwareWorldView
isBatchEndEvent
protected boolean isBatchEndEvent(IWorldChangeEvent evt)
- Specified by:
isBatchEndEvent in class BatchAwareWorldView
setDisappearedFlag
protected void setDisappearedFlag(IViewable obj)
- Specified by:
setDisappearedFlag in class BatchAwareWorldView
update
public void update()
- Updates message producer and reports the event.
getStartTime
public float getStartTime()
getCurrentTime
public float getCurrentTime()
getGameInfo
public GameInfo getGameInfo()
- Returns game info object used to query defcon.
- Returns:
getMinX
public double getMinX()
- Returns minimal X value.
- Returns:
getMaxX
public double getMaxX()
- Returns maximal X value.
- Returns:
getMinY
public double getMinY()
- Returns minimal Y value.
- Returns:
getMaxY
public double getMaxY()
- Returns maximal Y value.
- Returns:
getXSize
public double getXSize()
- Returns width of the map.
- Returns:
getYSize
public double getYSize()
- Returns height of the map.
- Returns:
updateProducer
public void updateProducer()
- Updates the message producer.
Copyright © 2014 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.