C# 클래스 fCraft.PlayerProximityTracker

Not thread safe.
파일 보기 프로젝트 열기: GlennMR/800craft 1 사용 예제들

공개 메소드들

메소드 설명
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

비공개 메소드들

메소드 설명
CallEvent ( Player p ) : void
CheckCoords ( Vector3I &pos ) : void
CheckDim ( int &coord, int dim ) : void

메소드 상세

AddPlayer() 공개 메소드

public AddPlayer ( Player p, Vector3I pos ) : void
p Player
pos Vector3I
리턴 void

FindPlayersAtDistance() 공개 메소드

public FindPlayersAtDistance ( Player p ) : IEnumerable
p Player
리턴 IEnumerable

FindPlayersAtDistance() 공개 메소드

public FindPlayersAtDistance ( Player p, double distInBlocks, Func takePair ) : IEnumerable
p Player
distInBlocks double
takePair Func
리턴 IEnumerable

MovePlayer() 공개 메소드

public MovePlayer ( Vector3I oldPos, Vector3I newPos, Player p ) : void
oldPos Vector3I
newPos Vector3I
p Player
리턴 void

PlayerProximityTracker() 공개 메소드

public PlayerProximityTracker ( int xSize, int ySize, World world ) : System
xSize int
ySize int
world World
리턴 System

RemovePlayer() 공개 메소드

public RemovePlayer ( Player p ) : void
p Player
리턴 void

SetCallEvents() 공개 메소드

public SetCallEvents ( bool call, double distanceInBlocks, Func takePair ) : void
call bool
distanceInBlocks double
takePair Func
리턴 void