|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgcspy.interpreter.Space
gcspy.interpreter.server.ServerSpace
public class ServerSpace
Represents a server-side space
Field Summary |
---|
Fields inherited from class gcspy.interpreter.Space |
---|
blockInfo, control, CONTROL_BACKGROUND, CONTROL_LINK, CONTROL_SEPARATOR, CONTROL_UNUSED, CONTROL_USED, DEFAULT_UNUSED_STRING, driverName, id, mainSpace, name, spaceInfo, streamNum, streams, tileNames, tileNum, title, unusedString |
Constructor Summary | |
---|---|
ServerSpace()
Create an empty server space. |
|
ServerSpace(java.lang.String name,
java.lang.String driverName,
int tileNum,
java.lang.String title,
java.lang.String blockInfo,
int streamNum,
java.lang.String unusedString,
boolean mainSpace)
Create a new server space |
Method Summary | |
---|---|
int |
addStream(Stream stream)
Add a stream to this space |
void |
finishControl()
|
void |
flagChanged()
This space has changed |
int |
getTilesToSend()
Get the number of tiles to send |
boolean |
hasChanged()
Has this space changed? |
void |
resetData()
Reset the data in every stream |
void |
resize(int tileNum)
Resize this space |
void |
setControl(byte tag,
int index)
Set the control for a tile |
void |
setControlRange(byte tag,
int start,
int len)
Set the control values for a range of tiles |
void |
setData(int tileNum)
Set the data for each stream in this space |
void |
setTileName(int tile,
java.lang.String name)
Set a tile's name |
void |
startControl()
Initialise the control values for this space |
void |
unflagChanged()
This space has not changed |
Methods inherited from class gcspy.interpreter.Space |
---|
deserialise, dump, getBlockInfo, getControl, getFullName, getID, getName, getSpaceInfo, getStream, getStreamNum, getTileName, getTileNum, getTitle, getUnusedString, initControl, isControlBackground, isControlLink, isControlSeparator, isControlUnused, isControlUsed, isMainSpace, serialise, setControl, setID, setSpaceInfo, setupControl |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ServerSpace()
public ServerSpace(java.lang.String name, java.lang.String driverName, int tileNum, java.lang.String title, java.lang.String blockInfo, int streamNum, java.lang.String unusedString, boolean mainSpace)
name
- The space's namedriverName
- Its driver's nametileNum
- The number of tiles in the spacetitle
- The title to useblockInfo
- The block information tile to usestreamNum
- The number of streams in the spaceunusedString
- The string to use for unused tilesmainSpace
- Is this the main space?Method Detail |
---|
public void setTileName(int tile, java.lang.String name)
tile
- the tile indexname
- the name of the tilepublic void setData(int tileNum)
tileNum
- The number of tiles in the spacepublic void flagChanged()
public void unflagChanged()
public int getTilesToSend()
public boolean hasChanged()
public int addStream(Stream stream)
stream
- The stream to add
public void resetData()
public void resize(int tileNum)
tileNum
- The number of tiles in the resized spacepublic void startControl()
public void setControlRange(byte tag, int start, int len)
tag
- The control valuestart
- The starting tilelen
- The number of tilespublic void setControl(byte tag, int index)
tag
- The control valueindex
- The tile indexpublic void finishControl()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |