public class ConfigurationObserver extends CommandMessage
Modifier and Type | Field and Description |
---|---|
protected boolean |
All
Toggles sending all messages with every update.
|
protected boolean |
Async
Whether to send asynchronous messages, such as HIT or AIN.
|
protected boolean |
Game
Whether to send game-related messages with every update.
|
protected boolean |
See
Whether to send messages about what the observed player sees with every update.
|
protected boolean |
Self
Whether to send messages about the observed player with every update.
|
protected boolean |
Special
Whether to send messages about special objects on the map with every update.
|
protected double |
Update
The frequency (in seconds) you will receive updates from the observer.
|
protected double |
UpdateTime
The frequency (in seconds) you will receive updates from the observer.
|
Constructor and Description |
---|
ConfigurationObserver()
Creates new instance of command ConfigurationObserver.
|
ConfigurationObserver(ConfigurationObserver original)
Cloning constructor.
|
ConfigurationObserver(double UpdateTime,
double Update,
boolean Game,
boolean Self,
boolean See,
boolean Special,
boolean All,
boolean Async)
Creates new instance of command ConfigurationObserver.
|
Modifier and Type | Method and Description |
---|---|
double |
getUpdate()
The frequency (in seconds) you will receive updates from the observer.
|
double |
getUpdateTime()
The frequency (in seconds) you will receive updates from the observer.
|
boolean |
isAll()
Toggles sending all messages with every update.
|
boolean |
isAsync()
Whether to send asynchronous messages, such as HIT or AIN.
|
boolean |
isGame()
Whether to send game-related messages with every update.
|
boolean |
isSee()
Whether to send messages about what the observed player sees with every update.
|
boolean |
isSelf()
Whether to send messages about the observed player with every update.
|
boolean |
isSpecial()
Whether to send messages about special objects on the map with every update.
|
ConfigurationObserver |
setAll(boolean All)
Toggles sending all messages with every update.
|
ConfigurationObserver |
setAsync(boolean Async)
Whether to send asynchronous messages, such as HIT or AIN.
|
ConfigurationObserver |
setGame(boolean Game)
Whether to send game-related messages with every update.
|
ConfigurationObserver |
setSee(boolean See)
Whether to send messages about what the observed player sees with every update.
|
ConfigurationObserver |
setSelf(boolean Self)
Whether to send messages about the observed player with every update.
|
ConfigurationObserver |
setSpecial(boolean Special)
Whether to send messages about special objects on the map with every update.
|
ConfigurationObserver |
setUpdate(double Update)
The frequency (in seconds) you will receive updates from the observer.
|
ConfigurationObserver |
setUpdateTime(double UpdateTime)
The frequency (in seconds) you will receive updates from the observer.
|
String |
toHtmlString() |
String |
toMessage() |
String |
toString() |
protected double UpdateTime
protected double Update
protected boolean Game
protected boolean Self
protected boolean See
protected boolean Special
protected boolean All
protected boolean Async
public ConfigurationObserver(double UpdateTime, double Update, boolean Game, boolean Self, boolean See, boolean Special, boolean All, 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)
public double getUpdateTime()
public ConfigurationObserver setUpdateTime(double UpdateTime)
public double getUpdate()
public ConfigurationObserver setUpdate(double Update)
public boolean isGame()
public ConfigurationObserver setGame(boolean Game)
public boolean isSelf()
public ConfigurationObserver setSelf(boolean Self)
public boolean isSee()
public ConfigurationObserver setSee(boolean See)
public boolean isSpecial()
public ConfigurationObserver setSpecial(boolean Special)
public boolean isAll()
public ConfigurationObserver setAll(boolean All)
public boolean isAsync()
public ConfigurationObserver setAsync(boolean Async)
public String toString()
toString
in class CommandMessage
public String toHtmlString()
public String toMessage()
Copyright © 2012 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.