public class Agent extends NetPuzlObject
Modifier and Type | Field and Description |
---|---|
private Matrix |
currentMatrix
The Matrix this Agent is currently in
|
private NetPuzlClientProxy |
proxy
The client proxy this Agent is on
|
Constructor and Description |
---|
Agent(ObjID objID,
Attributes attributes,
java.util.Map<ObjID,NetPuzlObject> cache)
Constructs an Agent with the given parameters
|
Modifier and Type | Method and Description |
---|---|
TSet |
createSetTag()
Overrides createSetTag because our Agents do not use Y values
|
Matrix |
getCurrentMatrix()
Gets the Matrix this Agent is currently in
|
NetPuzlClientProxy |
getProxy()
Gets the client proxy this Agent is on
|
void |
setCurrentMatrix(AbstractMatrix currentMatrix)
Sets the Matrix this Agent is currently in
|
void |
setProxy(NetPuzlClientProxy proxy)
Sets the client proxy this Agent is on
|
fullToString, getAttributes, getObjID, setAttributes, toString
private Matrix currentMatrix
private NetPuzlClientProxy proxy
public Agent(ObjID objID, Attributes attributes, java.util.Map<ObjID,NetPuzlObject> cache)
objID
- The object ID to construct this Agent withattributes
- The Attributes to construct this Agent withcache
- The Map to cache this Agent inpublic TSet createSetTag()
createSetTag
in class NetPuzlObject
NetPuzlObject.createSetTag()
public Matrix getCurrentMatrix()
public NetPuzlClientProxy getProxy()
public void setCurrentMatrix(AbstractMatrix currentMatrix)
currentMatrix
- The Matrix to set this Agent topublic void setProxy(NetPuzlClientProxy proxy)
proxy
- The client proxy to set this Agent to