feud.testgame.view
Class BulletView

java.lang.Object
  extended bycom.threed.jpct.Object3D
      extended byfeud.testgame.view.ClientObject
          extended byfeud.testgame.view.BulletView
All Implemented Interfaces:
java.io.Serializable

public class BulletView
extends ClientObject

A view object that represents a bullet.

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
BulletView()
          Creates a new bullet based on the blueprint.
BulletView(com.threed.jpct.Object3D obj)
          Creates a new bullet based on another Object3D.
 
Method Summary
 void process(long ticks, Level level)
          Process remote bullets.
 void processLocal(long ticks, Level level, LocalObject lo)
          Processes local bullets, i.e. bullets that have been fired on this client.
 
Methods inherited from class feud.testgame.view.ClientObject
addToTicks, addToWorld, animate, getBackAnimation, getBackAnimationSpeed, getBackPosition, getBackRotationMatrix, getBackSpeed, getLastSequence, getTicks, isModified, isOld, isRemote, 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

BulletView

public BulletView()
Creates a new bullet based on the blueprint.


BulletView

public BulletView(com.threed.jpct.Object3D obj)
Creates a new bullet based on another Object3D.

Parameters:
obj - the base object
Method Detail

processLocal

public void processLocal(long ticks,
                         Level level,
                         LocalObject lo)
Processes local bullets, i.e. bullets that have been fired on this client. Only those bullets may be checked for collisions. All the others will be checked by theirs creating clients and verified by the server.

Overrides:
processLocal in class ClientObject
Parameters:
ticks - time passed since the last run
level - the current level
lo - the LocalObject that this client object represents. Client objects and local objects are not bound directly, which is why the client object doesn't know of its local one.

process

public void process(long ticks,
                    Level level)
Process remote bullets.

Overrides:
process in class ClientObject
Parameters:
ticks - time passed since the last run
level - the current level