C# Class fCraft.Particle

Inheritance: PhysicsTask
Show file Open project: GlennMR/800craft

Public Methods

Method Description
Particle ( World world, Vector3I pos, Vector3F direction, Player owner, Block block, IParticleBehavior behavior ) : System

Initializes a new instance of the Particle class.

Protected Methods

Method Description
PerformInternal ( ) : int

Private Methods

Method Description
CheckHitPlayers ( List updates ) : void
Move ( ) : Vector3I

Method Details

Particle() public method

Initializes a new instance of the Particle class.
public Particle ( World world, Vector3I pos, Vector3F direction, Player owner, Block block, IParticleBehavior behavior ) : System
world World The world.
pos Vector3I The initial position.
direction Vector3F The direction in which the particle is flying.
owner Player The owner of the particle.
block Block The block type of the particle.
behavior IParticleBehavior The partcle behavior. Includes how fare and fast it moves, what happens if it hits a player an obstacle etc.
return System

PerformInternal() protected method

protected PerformInternal ( ) : int
return int