|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecthermes.HObject
public abstract class HObject
Basic game object class.
All parts of game are represented as HObjects.
For most uses, extend the Being class
Extend HObject directly when you want to represent something more abstract, like game state.
Constructor Summary | |
---|---|
protected |
HObject()
|
Method Summary | |
---|---|
protected void |
addToGroup(GenericGroup group)
adds the HObject to the group |
protected void |
delete()
removes the HObject from all containing groups |
protected java.util.Iterator<GenericGroup> |
getGroups()
Returns an iterator over all the groups the object is a member of. |
boolean |
needsMoreSamples()
Used for multisampling -- if true the object needs to be sampled more on the current update. |
void |
receive(KeyMessage m)
Override if you want your Being to handle Key messages |
void |
receive(MouseMessage m)
Override if you want your Being to handle Mouse messages |
void |
receive(MouseWheelMessage m)
Override if you want your Being to handle Mouse Wheel messages |
void |
receive(OscMessage m)
Override if you want your Being to handle OSC messages |
protected void |
removeFromGroup(GenericGroup group)
removes the HObject from this group |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected HObject()
Method Detail |
---|
protected void addToGroup(GenericGroup group)
group
- the group to add toprotected void removeFromGroup(GenericGroup group)
group
- the group to remove fromprotected void delete()
protected java.util.Iterator<GenericGroup> getGroups()
public boolean needsMoreSamples()
public void receive(KeyMessage m)
Being
to handle Key messages
receive
in interface KeySubscriber
m
- the message sent by the PostOfficepublic void receive(MouseMessage m)
Being
to handle Mouse messages
receive
in interface MouseSubscriber
m
- the message sent by the PostOfficepublic void receive(MouseWheelMessage m)
Being
to handle Mouse Wheel messages
receive
in interface MouseWheelSubscriber
m
- the message sent by the PostOfficepublic void receive(OscMessage m)
Being
to handle OSC messages
receive
in interface OscSubscriber
m
- the message sent by the PostOffice
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |