espresso3d.engine.world.sector.actor
Class E3DCameraActor

java.lang.Object
  extended byespresso3d.engine.base.E3DEngineItem
      extended byespresso3d.engine.renderer.base.E3DRenderable
          extended byespresso3d.engine.world.sector.base.E3DPortalEnabledRenderableItem
              extended byespresso3d.engine.world.sector.actor.E3DActor
                  extended byespresso3d.engine.world.sector.actor.E3DCameraActor
All Implemented Interfaces:
E3DCollisionDetectableObject, E3DPortalEnabledItem

public class E3DCameraActor
extends E3DActor

Author:
Curt This is a basic actor with no polygons. Useful for setting a viewport camera without havng to extend E3DActor and create your own actor.

Field Summary
 
Fields inherited from class espresso3d.engine.renderer.base.E3DRenderable
RENDERMODE_SOLID, RENDERMODE_TEXTURED, RENDERMODE_WIREFRAME
 
Constructor Summary
E3DCameraActor(E3DCameraActor toCopyActor)
           
E3DCameraActor(E3DEngine engine, E3DWorld world, java.lang.String actorID)
           
 
Method Summary
 boolean isCollideable()
          Override and return true if this actor is something other actors/objects can collide with.
 void onCollisionActor(E3DCollision collision)
          This gets called when an actor collides with this actor (collider or collidee.
 void onCollisionSprite(E3DCollision collision)
          This gets called when a particle collides with this actor
 E3DActor onGetClone()
          This method must be overriden to return a clone of the actor.
 
Methods inherited from class espresso3d.engine.world.sector.actor.E3DActor
addTriangle, getActorID, getBoundingObject, getForward, getLeft, getPosition, getTextureSortedTriangleMap, getTriangleList, getUniqueVertexList, getUp, getWorld, isActorLit, isDisplayMesh, isNeedingLightRecalc, loadActor, moveForward, renderAtPosition, rotate, rotate, rotateTriangles, scale, setActorID, setActorLit, setBoundingObject, setDisplayMesh, setNeedingLightRecalc, setPosition, setRenderMode, setTextureSortedTriangleMap, setWorld, translate
 
Methods inherited from class espresso3d.engine.world.sector.base.E3DPortalEnabledRenderableItem
checkSectorChangeDuringMovement, getSector, setSector
 
Methods inherited from class espresso3d.engine.renderer.base.E3DRenderable
getRenderableOptionsKey, getRenderMode, initCorrectGeometryRenderer, render
 
Methods inherited from class espresso3d.engine.base.E3DEngineItem
getEngine, setEngine
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface espresso3d.engine.collision.base.E3DCollisionDetectableObject
getEngine, getSector
 

Constructor Detail

E3DCameraActor

public E3DCameraActor(E3DEngine engine,
                      E3DWorld world,
                      java.lang.String actorID)

E3DCameraActor

public E3DCameraActor(E3DCameraActor toCopyActor)
Method Detail

onCollisionActor

public void onCollisionActor(E3DCollision collision)
Description copied from class: E3DActor
This gets called when an actor collides with this actor (collider or collidee. We don't know what to do with a collision here, but anything extending this should

Specified by:
onCollisionActor in interface E3DCollisionDetectableObject
Specified by:
onCollisionActor in class E3DActor

onCollisionSprite

public void onCollisionSprite(E3DCollision collision)
Description copied from class: E3DActor
This gets called when a particle collides with this actor

Specified by:
onCollisionSprite in interface E3DCollisionDetectableObject
Specified by:
onCollisionSprite in class E3DActor

onGetClone

public E3DActor onGetClone()
                    throws java.lang.Exception
Description copied from class: E3DActor
This method must be overriden to return a clone of the actor. This normally gets called when a specific actor in the preloadedActorMap of the world is specified in a world's map that is getting loaded What it wants is a clone of the preloaded actor returned (CLONE, not ref to the same object!). This is exposed to you so you can modify the actor if necessary when cloning it.

Specified by:
onGetClone in class E3DActor
Throws:
java.lang.Exception

isCollideable

public boolean isCollideable()
Description copied from class: E3DActor
Override and return true if this actor is something other actors/objects can collide with. If false, it will be ignore for other actor/object's collision detection

Specified by:
isCollideable in interface E3DCollisionDetectableObject
Specified by:
isCollideable in class E3DActor