|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.ObjectEigenMeat.EigenMaze.Entity
EigenMeat.EigenMaze.MassEntity
EigenMeat.EigenMaze.Projectile
Basic class for any projectiles.
| Field Summary | |
protected float |
blastRadius
|
protected boolean |
bounces
|
protected short |
BYTE_LENGTH
|
protected java.nio.ByteBuffer |
netBuffer
|
protected short |
netID
|
protected ParticleEffect |
peffect
|
protected boolean |
weathervane
|
| Fields inherited from class EigenMeat.EigenMaze.Entity |
dead, forwardVect, position, rawVelocity, timedDeath, timeToDie, velocity |
| Constructor Summary | |
Projectile()
Default constructor. |
|
| Method Summary | |
boolean |
collide(MobileEntity entity)
Called when Bomb hits something. |
void |
die()
Called when the Projectile dies, either by impact or old age. |
float |
getDamage()
Get the damage the projectile can inflict |
java.nio.ByteBuffer |
getData()
|
short |
getDataSize()
|
short |
getOwnerID()
|
short |
getType()
|
void |
receiveData(java.nio.ByteBuffer bb)
|
void |
setDamage(float damage)
Set the projectile's damage. |
void |
setOwnerID(short id)
|
void |
update()
Update function |
| Methods inherited from class EigenMeat.EigenMaze.MassEntity |
getMass, setMass |
| Methods inherited from class EigenMeat.EigenMaze.Entity |
checkCollision, clone, draw, drawShadow, getBoundingSphere, getForwardVect, getMesh, getPosition, getRawVelocity, getVelocity, getYRot, getZRot, hasShadow, isDead, setBoundingSphere, setCastShadow, setDead, setMesh, setPosition, setPosition, setTimedDeath, setVelocity, setVelocity, setYRot, setZRot, translate |
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected ParticleEffect peffect
protected boolean bounces
protected boolean weathervane
protected float blastRadius
protected final short BYTE_LENGTH
protected java.nio.ByteBuffer netBuffer
protected short netID
| Constructor Detail |
public Projectile()
| Method Detail |
public void setDamage(float damage)
damage - damagepublic float getDamage()
public void update()
update in interface MobileEntityupdate in class Entitypublic void die()
die in interface MobileEntitydie in class Entitypublic boolean collide(MobileEntity entity)
collide in interface MobileEntitycollide in class Entityentity - the entity bomb collided withpublic short getOwnerID()
public void setOwnerID(short id)
public short getType()
public short getDataSize()
public java.nio.ByteBuffer getData()
public void receiveData(java.nio.ByteBuffer bb)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||