C# Class fCraft.PlayerProximityTracker

Not thread safe.
Afficher le fichier Open project: GlennMR/800craft Class Usage Examples

Méthodes publiques

Méthode Description
AddPlayer ( Player p, Vector3I pos ) : void
FindPlayersAtDistance ( Player p ) : IEnumerable
FindPlayersAtDistance ( Player p, double distInBlocks, Func takePair ) : IEnumerable
MovePlayer ( Vector3I oldPos, Vector3I newPos, Player p ) : void
PlayerProximityTracker ( int xSize, int ySize, World world ) : System
RemovePlayer ( Player p ) : void
SetCallEvents ( bool call, double distanceInBlocks, Func takePair ) : void

Private Methods

Méthode Description
CallEvent ( Player p ) : void
CheckCoords ( Vector3I &pos ) : void
CheckDim ( int &coord, int dim ) : void

Method Details

AddPlayer() public méthode

public AddPlayer ( Player p, Vector3I pos ) : void
p Player
pos Vector3I
Résultat void

FindPlayersAtDistance() public méthode

public FindPlayersAtDistance ( Player p ) : IEnumerable
p Player
Résultat IEnumerable

FindPlayersAtDistance() public méthode

public FindPlayersAtDistance ( Player p, double distInBlocks, Func takePair ) : IEnumerable
p Player
distInBlocks double
takePair Func
Résultat IEnumerable

MovePlayer() public méthode

public MovePlayer ( Vector3I oldPos, Vector3I newPos, Player p ) : void
oldPos Vector3I
newPos Vector3I
p Player
Résultat void

PlayerProximityTracker() public méthode

public PlayerProximityTracker ( int xSize, int ySize, World world ) : System
xSize int
ySize int
world World
Résultat System

RemovePlayer() public méthode

public RemovePlayer ( Player p ) : void
p Player
Résultat void

SetCallEvents() public méthode

public SetCallEvents ( bool call, double distanceInBlocks, Func takePair ) : void
call bool
distanceInBlocks double
takePair Func
Résultat void