|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object cz.cuni.amis.pogamut.base.communication.messages.CommandMessage cz.cuni.amis.pogamut.ut2004.communication.messages.gbcommands.ConfigurationObserver
public class ConfigurationObserver
Representation of the GameBots2004 command CONF. Configures various attributes of the observer. You can include several of the parameters. The state of options you don't specify will remain unchanged.
Field Summary | |
---|---|
protected java.lang.Boolean |
All
Toggles sending all messages with every update. |
protected java.lang.Boolean |
Async
Whether to send asynchronous messages, such as HIT or AIN. |
protected java.lang.Boolean |
Game
Whether to send game-related messages with every update. |
static java.lang.String |
PROTOTYPE
Example how the message looks like - used during parser tests. |
protected java.lang.Boolean |
See
Whether to send messages about what the observed player sees with every update. |
protected java.lang.Boolean |
Self
Whether to send messages about the observed player with every update. |
protected java.lang.Boolean |
Special
Whether to send messages about special objects on the map with every update. |
protected java.lang.Double |
Update
The frequency (in seconds) you will receive updates from the observer. |
protected java.lang.Double |
UpdateTime
The frequency (in seconds) you will receive updates from the observer. |
Constructor Summary | |
---|---|
ConfigurationObserver()
Creates new instance of command ConfigurationObserver. |
|
ConfigurationObserver(ConfigurationObserver original)
Cloning constructor. |
|
ConfigurationObserver(java.lang.Double UpdateTime,
java.lang.Double Update,
java.lang.Boolean Game,
java.lang.Boolean Self,
java.lang.Boolean See,
java.lang.Boolean Special,
java.lang.Boolean All,
java.lang.Boolean Async)
Creates new instance of command ConfigurationObserver. |
Method Summary | |
---|---|
java.lang.Double |
getUpdate()
The frequency (in seconds) you will receive updates from the observer. |
java.lang.Double |
getUpdateTime()
The frequency (in seconds) you will receive updates from the observer. |
java.lang.Boolean |
isAll()
Toggles sending all messages with every update. |
java.lang.Boolean |
isAsync()
Whether to send asynchronous messages, such as HIT or AIN. |
java.lang.Boolean |
isGame()
Whether to send game-related messages with every update. |
java.lang.Boolean |
isSee()
Whether to send messages about what the observed player sees with every update. |
java.lang.Boolean |
isSelf()
Whether to send messages about the observed player with every update. |
java.lang.Boolean |
isSpecial()
Whether to send messages about special objects on the map with every update. |
ConfigurationObserver |
setAll(java.lang.Boolean All)
Toggles sending all messages with every update. |
ConfigurationObserver |
setAsync(java.lang.Boolean Async)
Whether to send asynchronous messages, such as HIT or AIN. |
ConfigurationObserver |
setGame(java.lang.Boolean Game)
Whether to send game-related messages with every update. |
ConfigurationObserver |
setSee(java.lang.Boolean See)
Whether to send messages about what the observed player sees with every update. |
ConfigurationObserver |
setSelf(java.lang.Boolean Self)
Whether to send messages about the observed player with every update. |
ConfigurationObserver |
setSpecial(java.lang.Boolean Special)
Whether to send messages about special objects on the map with every update. |
ConfigurationObserver |
setUpdate(java.lang.Double Update)
The frequency (in seconds) you will receive updates from the observer. |
ConfigurationObserver |
setUpdateTime(java.lang.Double UpdateTime)
The frequency (in seconds) you will receive updates from the observer. |
java.lang.String |
toHtmlString()
|
java.lang.String |
toMessage()
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String PROTOTYPE
protected java.lang.Double UpdateTime
protected java.lang.Double Update
protected java.lang.Boolean Game
protected java.lang.Boolean Self
protected java.lang.Boolean See
protected java.lang.Boolean Special
protected java.lang.Boolean All
protected java.lang.Boolean Async
Constructor Detail |
---|
public ConfigurationObserver(java.lang.Double UpdateTime, java.lang.Double Update, java.lang.Boolean Game, java.lang.Boolean Self, java.lang.Boolean See, java.lang.Boolean Special, java.lang.Boolean All, java.lang.Boolean Async)
UpdateTime
- The frequency (in seconds) you will receive updates from the observer.Update
- The frequency (in seconds) you will receive updates from the observer. Same as UpdateTime.Game
- Whether to send game-related messages with every update.
Affects the following messages: NFO, PLR.Self
- Whether to send messages about the observed player with every update.
Affects the following messages: SLF, MYINV.See
- Whether to send messages about what the observed player sees with every update.
Affects the following messages: PLR, INV, NAV, MOV, PRJ, VEH.Special
- Whether to send messages about special objects on the map with every update.
Affects the following messages: FLG, BOM, DOM.All
- Toggles sending all messages with every update.
You can still receive the messages by asking for them using the commands GAME, SELF, SEE, SPECIAL and ALL.Async
- Whether to send asynchronous messages, such as HIT or AIN.
Note that if you turn this off you will not be able to receive these messages at all.public ConfigurationObserver()
public ConfigurationObserver(ConfigurationObserver original)
original
- Method Detail |
---|
public java.lang.Double getUpdateTime()
public ConfigurationObserver setUpdateTime(java.lang.Double UpdateTime)
public java.lang.Double getUpdate()
public ConfigurationObserver setUpdate(java.lang.Double Update)
public java.lang.Boolean isGame()
public ConfigurationObserver setGame(java.lang.Boolean Game)
public java.lang.Boolean isSelf()
public ConfigurationObserver setSelf(java.lang.Boolean Self)
public java.lang.Boolean isSee()
public ConfigurationObserver setSee(java.lang.Boolean See)
public java.lang.Boolean isSpecial()
public ConfigurationObserver setSpecial(java.lang.Boolean Special)
public java.lang.Boolean isAll()
public ConfigurationObserver setAll(java.lang.Boolean All)
public java.lang.Boolean isAsync()
public ConfigurationObserver setAsync(java.lang.Boolean Async)
public java.lang.String toString()
toString
in class CommandMessage
public java.lang.String toHtmlString()
public java.lang.String toMessage()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |