feud.testgame.view
Class AnimatedObject

java.lang.Object
  extended bycom.threed.jpct.Object3D
      extended byfeud.testgame.view.ClientObject
          extended byfeud.testgame.view.AnimatedObject
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
EnemyView

public abstract class AnimatedObject
extends ClientObject

An animated object is an extended client object which can use the animation information already present in the client object to play a keyframe animation!

See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.threed.jpct.Object3D
BILLBOARDING_DISABLED, BILLBOARDING_ENABLED, BLENDING_DISABLED, BLENDING_ENABLED, BUMPMAPPING_DISABLED, BUMPMAPPING_ENABLED, COLLISION_CHECK_NONE, COLLISION_CHECK_OTHERS, COLLISION_CHECK_SELF, COLLISION_DETECTION_NOT_OPTIMIZED, COLLISION_DETECTION_OPTIMIZED, COLLISION_NONE, CULLING_DISABLED, CULLING_ENABLED, ELLIPSOID_ALIGNED, ELLIPSOID_TRANSFORMED, ENVMAP_CAMERASPACE, ENVMAP_DISABLED, ENVMAP_ENABLED, ENVMAP_WORLDSPACE, ENVMAP_XY, ENVMAP_XZ, ENVMAP_YZ, FILTERING_DISABLED, FILTERING_ENABLED, FINALIZE_DEFAULT, FINALIZE_PRESORTX, FINALIZE_PRESORTY, FINALIZE_PRESORTZ, LIGHTING_ALL_ENABLED, LIGHTING_NO_LIGHTS, MOUSE_SELECTABLE, MOUSE_UNSELECTABLE, NO_OBJECT, OBJ_INVISIBLE, OBJ_VISIBLE, RAY_MISSES_BOX, SECTOR_AUTODETECT, SECTOR_PRECALCULATED, SHADING_FAKED_FLAT, SHADING_GOURAUD, SPECULAR_DISABLED, SPECULAR_ENABLED, TRANSPARENCY_MODE_ADD, TRANSPARENCY_MODE_DEFAULT, UNKNOWN_OBJECTSIZE
 
Constructor Summary
AnimatedObject()
           
AnimatedObject(com.threed.jpct.Object3D obj)
           
AnimatedObject(com.threed.jpct.Object3D obj, com.threed.jpct.Object3D child)
           
 
Method Summary
 void process(long ticks, Level level)
          Updates the view, i.e. animates the object and does the movement interpolation based on linear interpolation until a new state from the server arrives.
 
Methods inherited from class feud.testgame.view.ClientObject
addToTicks, addToWorld, animate, getBackAnimation, getBackAnimationSpeed, getBackPosition, getBackRotationMatrix, getBackSpeed, getLastSequence, getTicks, isModified, isOld, isRemote, processLocal, removeFromWorld, resetTicks, setAnimSpeed, setBackAnimation, setBackAnimationSpeed, setBackPosition, setBackRotationMatrix, setBackSpeed, setClampingMode, setLastSequence, setModified, setRemoteFlag, setToLocalObject, setVisibility, touch
 
Methods inherited from class com.threed.jpct.Object3D
addChild, addCollisionListener, addParent, addTriangle, addTriangle, addTriangle, addTriangle, addTriangle, addTriangle, align, align, animate, build, calcBoundingBox, calcCenter, calcMinDistance, calcMinDistance, calcNormals, calcTextureWrap, calcTextureWrapSpherical, checkForCollision, checkForCollisionEllipsoid, checkForCollisionSpherical, clearAdditionalColor, clearAnimation, clearObject, cloneObject, createDummyObj, createTriangleStrips, createTriangleStrips, decoupleMesh, disableCollisionListeners, disableLazyTransformations, disableVertexSharing, ellipsoidIntersectsAABB, enableCollisionListeners, enableLazyTransformations, getAdditionalColor, getAnimationSequence, getCenter, getCollisionListeners, getEllipsoidMode, getEnvmapMode, getID, getLighting, getMesh, getName, getNextID, getOcTree, getOrigin, getOriginMatrix, getParents, getPolygonManager, getRotationMatrix, getRotationPivot, getScale, getTransformedCenter, getTranslation, getTranslationMatrix, getUserObject, getVisibility, getWorldTransformation, getXAxis, getYAxis, getZAxis, hasChild, hasParent, invert, isBumpmapped, isEnvmapped, isSelectable, mergeObjects, rayIntersectsAABB, rayIntersectsAABB, rebuild, recreateTextureCoords, removeChild, removeCollisionListener, removeMultiTexturing, removeParent, reorderSectors, resetCollisionStatus, resetNextID, rotateAxis, rotateMesh, rotateX, rotateY, rotateZ, scale, setAdditionalColor, setAllTextures, setAllTextures, setAnimationSequence, setAsMultiSectored, setBaseTexture, setBillboarding, setBlending, setBoundingBox, setBumpmapped, setBumpmapTexture, setCenter, setCollisionMode, setCollisionOptimization, setCulling, setEllipsoidMode, setEnvmapDirection, setEnvmapMode, setEnvmapped, setFiltering, setLighting, setMesh, setName, setNextID, setOcTree, setOrigin, setRotationMatrix, setRotationPivot, setScale, setSector, setSectorDetectionMode, setSelectable, setShadingMode, setSortOffset, setSpecularLighting, setTexture, setTexture, setTranslationMatrix, setTransparency, setTransparencyMode, setUserObject, sphereIntersectsAABB, translate, translate, translateMesh, wasTargetOfLastCollision, wasVisible
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AnimatedObject

public AnimatedObject()

AnimatedObject

public AnimatedObject(com.threed.jpct.Object3D obj)

AnimatedObject

public AnimatedObject(com.threed.jpct.Object3D obj,
                      com.threed.jpct.Object3D child)
Method Detail

process

public void process(long ticks,
                    Level level)
Updates the view, i.e. animates the object and does the movement interpolation based on linear interpolation until a new state from the server arrives.

Overrides:
process in class ClientObject
Parameters:
ticks - the ticks passed since the last call
level - the level. Not used in within this method ATM.