|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.zmpp.vm.Objects
public class Objects
This class represents the object table.
Constructor Summary | |
---|---|
Objects(MemoryAccess memaccess,
int address)
Constructor. |
Method Summary | |
---|---|
int |
getNumObjects()
Returns the total number of objects. |
ZObject |
getObject(int objectNum)
Returns the Z-object with the specified object number. |
short |
getPropertyDefault(int propertyNum)
Returns the property default value at the specified position in the property defaults table. |
int |
getPropertyLength(int propertyAddress)
Determines the length of the property at the specified address. |
void |
insertObject(int parentNum,
int objectNum)
Inserts an object to a new parent. |
void |
removeObject(int objectNum)
Removes an object from its parent. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Objects(MemoryAccess memaccess, int address)
memaccess
- the memory access objectaddress
- the object table's start addressMethod Detail |
---|
public short getPropertyDefault(int propertyNum)
getPropertyDefault
in interface ObjectTree
propertyNum
- the default entry's propery number
public int getNumObjects()
getNumObjects
in interface ObjectTree
public ZObject getObject(int objectNum)
getObject
in interface ObjectTree
objectNum
- object number
public void removeObject(int objectNum)
removeObject
in interface ObjectTree
objectNum
- the object numberpublic void insertObject(int parentNum, int objectNum)
insertObject
in interface ObjectTree
parentNum
- the parent numberobjectNum
- the object numberpublic int getPropertyLength(int propertyAddress)
getPropertyLength
in interface ObjectTree
propertyAddress
- the property address
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |