C# Class fCraft.BulletBehavior

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

Public Methods

Method Description
CanPlacePortal ( int x, int y, int z, Map map ) : bool
HitPlayer ( World world, Vector3I pos, Player hitted, Player by, int &restDistance, IList updates ) : void
ModifyDirection ( Vector3F &direction, Block currentBlock ) : void
VisitBlock ( World world, Vector3I pos, Block block, Player owner, int &restDistance, IList updates, Block sending ) : bool

Method Details

CanPlacePortal() public static method

public static CanPlacePortal ( int x, int y, int z, Map map ) : bool
x int
y int
z int
map Map
return bool

HitPlayer() public method

public HitPlayer ( World world, Vector3I pos, Player hitted, Player by, int &restDistance, IList updates ) : void
world World
pos Vector3I
hitted Player
by Player
restDistance int
updates IList
return void

ModifyDirection() public method

public ModifyDirection ( Vector3F &direction, Block currentBlock ) : void
direction Vector3F
currentBlock Block
return void

VisitBlock() public method

public VisitBlock ( World world, Vector3I pos, Block block, Player owner, int &restDistance, IList updates, Block sending ) : bool
world World
pos Vector3I
block Block
owner Player
restDistance int
updates IList
sending Block
return bool