moagg.game.control.handler
Class CreateThrustParticlesHandler

java.lang.Object
  extended by moagg.game.control.handler.CreateThrustParticlesHandler
All Implemented Interfaces:
GameControlHandler

public class CreateThrustParticlesHandler
extends java.lang.Object
implements GameControlHandler

Takes care of creating thrust particles for ships and missiles.


Field Summary
static double THRUST_PARTICLE_FUZZ
          Thrust particle angle fuzz in degrees.
static int THRUST_PARTICLE_LIFETIME
          The lifetime of a thrust particle in milliseconds.
static int THRUST_PARTICLE_LIFETIME_FUZZ
          Thrust particle lifetime fuzz in milliseconds.
static double THRUST_PARTICLE_SPEED
          The relative speed of thrust particles.
 
Constructor Summary
CreateThrustParticlesHandler()
           
 
Method Summary
protected  Particle createThrustParticle(ControllableObject co)
           
protected  void handleObject(ControllableObject co, InternalGameControl gameControl)
           
 void update(InternalGameControl gameControl, long elapsedTime)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

THRUST_PARTICLE_FUZZ

public static final double THRUST_PARTICLE_FUZZ
Thrust particle angle fuzz in degrees.

See Also:
Constant Field Values

THRUST_PARTICLE_SPEED

public static final double THRUST_PARTICLE_SPEED
The relative speed of thrust particles.

See Also:
Constant Field Values

THRUST_PARTICLE_LIFETIME

public static final int THRUST_PARTICLE_LIFETIME
The lifetime of a thrust particle in milliseconds.

See Also:
Constant Field Values

THRUST_PARTICLE_LIFETIME_FUZZ

public static final int THRUST_PARTICLE_LIFETIME_FUZZ
Thrust particle lifetime fuzz in milliseconds.

See Also:
Constant Field Values
Constructor Detail

CreateThrustParticlesHandler

public CreateThrustParticlesHandler()
Method Detail

update

public void update(InternalGameControl gameControl,
                   long elapsedTime)
Specified by:
update in interface GameControlHandler

handleObject

protected void handleObject(ControllableObject co,
                            InternalGameControl gameControl)

createThrustParticle

protected Particle createThrustParticle(ControllableObject co)


Copyright © 2008. All Rights Reserved.