public class TeamScoreSharedImpl extends TeamScoreShared
Modifier and Type | Class and Description |
---|---|
static class |
TeamScoreSharedImpl.TeamScoreSharedUpdate |
Modifier and Type | Field and Description |
---|---|
protected cz.cuni.amis.pogamut.unreal.communication.messages.UnrealId |
Id
Message identifier.
|
protected cz.cuni.amis.pogamut.multi.communication.worldview.property.IntegerProperty |
myScore
The score of the team (can be some special measurement that
differs from game type to game type - number of stolen flags
in CTF game, number of team frags in TeamGame, etc.)
|
protected cz.cuni.amis.pogamut.multi.communication.worldview.property.IntegerProperty |
myTeam
Team identifier.
|
protected HashMap<cz.cuni.amis.pogamut.multi.communication.worldview.property.PropertyId,cz.cuni.amis.pogamut.multi.communication.worldview.object.ISharedProperty> |
propertyMap |
ScorePropertyToken, SharedPropertyTokens, SimTime, TeamPropertyToken
Constructor and Description |
---|
TeamScoreSharedImpl(TeamScoreSharedImpl source) |
TeamScoreSharedImpl(cz.cuni.amis.pogamut.base.communication.worldview.object.WorldObjectId objectId,
Collection<cz.cuni.amis.pogamut.multi.communication.worldview.object.ISharedProperty> properties) |
Modifier and Type | Method and Description |
---|---|
TeamScoreSharedImpl |
clone() |
cz.cuni.amis.pogamut.unreal.communication.messages.UnrealId |
getId()
Message identifier.
|
Map<cz.cuni.amis.pogamut.multi.communication.worldview.property.PropertyId,cz.cuni.amis.pogamut.multi.communication.worldview.object.ISharedProperty> |
getProperties() |
cz.cuni.amis.pogamut.multi.communication.worldview.object.ISharedProperty |
getProperty(cz.cuni.amis.pogamut.multi.communication.worldview.property.PropertyId id) |
Integer |
getScore()
The score of the team (can be some special measurement that
differs from game type to game type - number of stolen flags
in CTF game, number of team frags in TeamGame, etc.)
|
Integer |
getTeam()
Team identifier.
|
void |
setSimTime(long SimTime)
Used by Yylex to slip correct time of the object or programmatically.
|
String |
toHtmlString() |
String |
toString() |
getCompositeClass, getSimTime
protected HashMap<cz.cuni.amis.pogamut.multi.communication.worldview.property.PropertyId,cz.cuni.amis.pogamut.multi.communication.worldview.object.ISharedProperty> propertyMap
protected cz.cuni.amis.pogamut.unreal.communication.messages.UnrealId Id
protected cz.cuni.amis.pogamut.multi.communication.worldview.property.IntegerProperty myTeam
protected cz.cuni.amis.pogamut.multi.communication.worldview.property.IntegerProperty myScore
public TeamScoreSharedImpl(TeamScoreSharedImpl source)
public TeamScoreSharedImpl(cz.cuni.amis.pogamut.base.communication.worldview.object.WorldObjectId objectId, Collection<cz.cuni.amis.pogamut.multi.communication.worldview.object.ISharedProperty> properties)
public void setSimTime(long SimTime)
TeamScoreShared
setSimTime
in class TeamScoreShared
public TeamScoreSharedImpl clone()
clone
in interface cz.cuni.amis.pogamut.multi.communication.worldview.object.ISharedWorldObject
clone
in class TeamScoreShared
public cz.cuni.amis.pogamut.multi.communication.worldview.object.ISharedProperty getProperty(cz.cuni.amis.pogamut.multi.communication.worldview.property.PropertyId id)
public Map<cz.cuni.amis.pogamut.multi.communication.worldview.property.PropertyId,cz.cuni.amis.pogamut.multi.communication.worldview.object.ISharedProperty> getProperties()
public cz.cuni.amis.pogamut.unreal.communication.messages.UnrealId getId()
getId
in interface cz.cuni.amis.pogamut.base.communication.worldview.object.IWorldObject
getId
in class TeamScoreShared
public Integer getTeam()
getTeam
in class TeamScoreShared
public Integer getScore()
getScore
in class TeamScoreShared
public String toString()
toString
in class TeamScoreShared
public String toHtmlString()
toHtmlString
in class TeamScoreShared
Copyright © 2012 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.