|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfr.inria.zuist.engine.ObjectDescription
public abstract class ObjectDescription
Description of objects to be loaded/unloaded in the scene.
| Field Summary | |
|---|---|
protected String |
id
|
protected Region |
parentRegion
|
protected boolean |
sensitive
|
protected String |
takesTo
|
protected short |
takesToType
|
protected int |
zindex
|
| Constructor Summary | |
|---|---|
protected |
ObjectDescription(String id,
int z,
Region pr,
boolean sensitive)
|
| Method Summary | |
|---|---|
abstract void |
createObject(SceneManager sm,
VirtualSpace vs,
boolean fadeIn)
Called automatically by scene manager. |
abstract void |
destroyObject(SceneManager sm,
VirtualSpace vs,
boolean fadeOut)
Called automatically by scene manager. |
abstract Glyph |
getGlyph()
Get Glyph described by this description. |
String |
getID()
Get this object description's ID. |
Region |
getParentRegion()
Get Region this object belongs to. |
abstract double |
getX()
Get x-coordinate of object in virtual space. |
abstract double |
getY()
Get y-coordinate of object in virtual space. |
int |
getZindex()
Get z-index for this object. |
boolean |
isSensitive()
Is the object sensitive to cursor entry/exit. |
abstract void |
moveTo(double x,
double y)
|
protected void |
setParentRegion(Region pr)
|
void |
setSensitive(boolean b)
Should the object be sensitive to cursor entry/exit. |
void |
setTakesTo(String id,
short t)
Should take/"transport" to object/region whose ID is id |
protected void |
setZindex(int i)
|
String |
takesTo()
Get the ID of object where this one takes/"transports" to. |
short |
takesToType()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected String id
protected int zindex
protected boolean sensitive
protected Region parentRegion
protected String takesTo
protected short takesToType
| Constructor Detail |
|---|
protected ObjectDescription(String id,
int z,
Region pr,
boolean sensitive)
| Method Detail |
|---|
public abstract void createObject(SceneManager sm,
VirtualSpace vs,
boolean fadeIn)
public abstract void destroyObject(SceneManager sm,
VirtualSpace vs,
boolean fadeOut)
public void setSensitive(boolean b)
public boolean isSensitive()
public abstract Glyph getGlyph()
public int getZindex()
protected void setZindex(int i)
public Region getParentRegion()
protected void setParentRegion(Region pr)
public void setTakesTo(String id,
short t)
id - set to null if should not take anywherepublic String takesTo()
public short takesToType()
public String getID()
public abstract double getX()
public abstract double getY()
public abstract void moveTo(double x,
double y)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||