|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcrystalspace.jbind.impl.csNativeObject
crystalspace.jbind.impl.csutil.scf.csBase
crystalspace.jbind.impl.engine.objwatch.csObjectWatcher
| Field Summary |
| Fields inherited from class crystalspace.jbind.impl.csNativeObject |
ImplFactory, nPointer |
| Constructor Summary | |
csObjectWatcher(iPointer nPointer)
|
|
| Method Summary | |
void |
addListener(iObjectWatcherListener cb)
Add a listener to this object watcher. |
iLight |
getLastLight()
Get the last light.Only valid if the last operation(GetLastOperation()) is one of CS_WATCH_LIGHT_. |
iMovable |
getLastMovable()
Get the last movable.Only valid if the last operation(GetLastOperation()) is one of CS_WATCH_MOVABLE_. |
int |
getLastOperation()
Get the last operation that occured.This will be one of : * CS_WATCH_NONE : nothing happened yet. * CS_WATCH_LIGHT_DESTROY : light is destroyed. * CS_WATCH_LIGHT_MOVE : light has moved. * CS_WATCH_LIGHT_COLOR : light has changed color. * CS_WATCH_LIGHT_SECTOR : light has changed sector. * CS_WATCH_LIGHT_RADIUS : light has changed radius. * CS_WATCH_MOVABLE_DESTROY : movable is destroyed. * CS_WATCH_MOVABLE_CHANGED : movable is changed Implemented in csObjectWatcher |
iLight |
getLight(int idx)
Get the specified watched light.Implemented in csObjectWatcher |
iMovable |
getMovable(int idx)
Get the specified watched movable.Implemented in csObjectWatcher |
java.lang.String |
getName()
Return the name of the interface |
int |
getVersion()
Return the version of the interface |
int |
getWatchedLightCount()
Get the number of watched lights.Implemented in csObjectWatcher |
int |
getWatchedMovableCount()
Get the number of watched movables.Implemented in csObjectWatcher |
int |
getWatchNumber()
Get the current number for his watcher. |
protected boolean |
isNativePointerValidSafe(long pointer)
|
void |
removeLight(iLight light)
Remove a light to watch.Implemented in csObjectWatcher |
void |
removeListener(iObjectWatcherListener cb)
Remove a listener.Implemented in csObjectWatcher |
void |
removeMovable(iMovable movable)
Remove a movable to watch.Implemented in csObjectWatcher |
void |
reset()
Reset.Remove all watched objects from this watcher. |
void |
watchLight(iLight light)
Add a light to watch.Implemented in csObjectWatcher |
void |
watchMovable(iMovable movable)
Add a movable to watch.Implemented in csObjectWatcher |
| Methods inherited from class crystalspace.jbind.impl.csutil.scf.csBase |
decRef, equals, finalize, getRefCount, incRef, nDelete, queryInterface, queryInterfaceSafe |
| Methods inherited from class crystalspace.jbind.impl.csNativeObject |
changePointer, getPointer, getPointer, getPointerArray, hashCode, isMemoryOwner, isNativePointerValid, newNativeObject, setMemoryOwner, toString |
| Methods inherited from class java.lang.Object |
clone, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface crystalspace.jbind.interfaces.iutil.scf.iBase |
decRef, getRefCount, incRef, queryInterface, queryInterfaceSafe |
| Methods inherited from interface crystalspace.jbind.interfaces.iPointer |
changePointer, getPointer, isMemoryOwner, setMemoryOwner |
| Constructor Detail |
public csObjectWatcher(iPointer nPointer)
nPointer - | Method Detail |
public int getVersion()
iBase
getVersion in interface iBasegetVersion in class csBaseiBase.getVersion()public java.lang.String getName()
iBase
getName in interface iBasegetName in class csBaseiBase.getName()protected boolean isNativePointerValidSafe(long pointer)
isNativePointerValidSafe in class csNativeObjectcsNativeObject.isNativePointerValidSafe(long)public void addListener(iObjectWatcherListener cb)
iObjectWatcher
addListener in interface iObjectWatchercb - iObjectWatcher.addListener(crystalspace.jbind.interfaces.iengine.objwatch.iObjectWatcherListener)public iLight getLastLight()
iObjectWatcher
getLastLight in interface iObjectWatcheriObjectWatcher.getLastLight()public iMovable getLastMovable()
iObjectWatcher
getLastMovable in interface iObjectWatcheriObjectWatcher.getLastMovable()public int getLastOperation()
iObjectWatcher
getLastOperation in interface iObjectWatcheriObjectWatcher.getLastOperation()public iLight getLight(int idx)
iObjectWatcher
getLight in interface iObjectWatcheridx -
iObjectWatcher.getLight(int)public iMovable getMovable(int idx)
iObjectWatcher
getMovable in interface iObjectWatcheridx -
iObjectWatcher.getMovable(int)public int getWatchedLightCount()
iObjectWatcher
getWatchedLightCount in interface iObjectWatcheriObjectWatcher.getWatchedLightCount()public int getWatchedMovableCount()
iObjectWatcher
getWatchedMovableCount in interface iObjectWatcheriObjectWatcher.getWatchedMovableCount()public int getWatchNumber()
iObjectWatcher
getWatchNumber in interface iObjectWatcheriObjectWatcher.getWatchNumber()public void removeLight(iLight light)
iObjectWatcher
removeLight in interface iObjectWatcherlight - iObjectWatcher.removeLight(crystalspace.jbind.interfaces.iengine.light.iLight)public void removeListener(iObjectWatcherListener cb)
iObjectWatcher
removeListener in interface iObjectWatchercb - iObjectWatcher.removeListener(crystalspace.jbind.interfaces.iengine.objwatch.iObjectWatcherListener)public void removeMovable(iMovable movable)
iObjectWatcher
removeMovable in interface iObjectWatchermovable - iObjectWatcher.removeMovable(crystalspace.jbind.interfaces.iengine.movable.iMovable)public void reset()
iObjectWatcher
reset in interface iObjectWatcheriObjectWatcher.reset()public void watchLight(iLight light)
iObjectWatcher
watchLight in interface iObjectWatcherlight - iObjectWatcher.watchLight(crystalspace.jbind.interfaces.iengine.light.iLight)public void watchMovable(iMovable movable)
iObjectWatcher
watchMovable in interface iObjectWatchermovable - iObjectWatcher.watchMovable(crystalspace.jbind.interfaces.iengine.movable.iMovable)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||