C# Class fCraft.Particle

Inheritance: PhysicsTask
Afficher le fichier Open project: GlennMR/800craft

Méthodes publiques

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

Initializes a new instance of the Particle class.

Méthodes protégées

Méthode Description
PerformInternal ( ) : int

Private Methods

Méthode Description
CheckHitPlayers ( List updates ) : void
Move ( ) : Vector3I

Method Details

Particle() public méthode

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.
Résultat System

PerformInternal() protected méthode

protected PerformInternal ( ) : int
Résultat int