public class SyncTaglet
extends Object
implements Taglet
This taglet indicates that a command is automatically synchronized with the other players, instead of only executed locally. If this is not the case and the command is only executed locally, the game will go Out of Sync.
For example the trigger command invokes a GP, but only locally.
If this trigger command is only executed by 1 player and not by the others,
an OoS error will occur.
Triggers.trTechInvokeGodPower(int, string, vector, vector)
On the other hand, the console command
- even though only issued locally - will automatically be sent to
the other players in the game. They will also execute the command in their game
and synchronized is guaranteed.
Unit.trainInSelected(string, int)
| Constructor and Description |
|---|
SyncTaglet() |
| Modifier and Type | Method and Description |
|---|---|
String |
getName() |
boolean |
inConstructor() |
boolean |
inField() |
boolean |
inMethod() |
boolean |
inOverview() |
boolean |
inPackage() |
boolean |
inType() |
boolean |
isInlineTag() |
static void |
register(Map<String,Taglet> tagletMap) |
String |
toString(Tag tag) |
String |
toString(Tag[] tags) |
public String getName()
getName in interface Tagletpublic boolean inConstructor()
inConstructor in interface Tagletpublic boolean inField()
inField in interface Tagletpublic boolean inMethod()
inMethod in interface Tagletpublic boolean inOverview()
inOverview in interface Tagletpublic boolean inPackage()
inPackage in interface Tagletpublic boolean inType()
inType in interface Tagletpublic boolean isInlineTag()
isInlineTag in interface Tagletpublic String toString(Tag tag)
toString in interface Tagletpublic String toString(Tag[] tags)
toString in interface Tagletpublic static void register(Map<String,Taglet> tagletMap)