C# 클래스 wServer.logic.BehaviorBase

파일 보기 프로젝트 열기: C453/OryxKingdom

공개 프로퍼티들

프로퍼티 타입 설명
MAGIC_EYE_KEY int

공개 메소드들

메소드 설명
AOE ( World world, Entity self, float radius, bool players, Action callback ) : void
AOE ( World world, Position pos, float radius, bool players, Action callback ) : void
AOEPet ( World world, Position pos, float radius, Action callback ) : void
Dist ( double x1, double y1, double x2, double y2 ) : double
Dist ( Entity a, Entity b ) : float
DistSqr ( Entity a, Entity b ) : float
GetNearestEntity ( Entity entity, float &dist, bool players, Predicate predicate = null ) : Entity
HasPlayerNearby ( Entity entity ) : bool
HasPlayerNearby ( World world, double x, double y ) : bool
Validate ( Entity entity, float x, float y ) : bool
ValidateAndMove ( Entity entity, float x, float y ) : bool

보호된 메소드들

메소드 설명
AOE ( World world, float radius, short objType, Action callback ) : void
BehaviorBase ( ) : System
CountEntity ( float dist, short objType ) : int
CountEntity ( float dist, string group ) : int
GetNearestEntities ( float dist, short objType ) : IEnumerable
GetNearestEntitiesByGroup ( float dist, string group ) : IEnumerable
GetNearestEntity ( float &dist, short objType ) : Entity
GetNearestEntityByGroup ( float &dist, string group ) : Entity
GetNearestEntityPet ( float &dist ) : Entity
GetSpeedMultiplier ( Entity entity ) : float
HitTestEnemy ( float x, float y ) : IEnumerable
HitTestPlayer ( float x, float y ) : IEnumerable
Validate ( float x, float y ) : bool
ValidateAndMove ( float x, float y ) : bool

메소드 상세

AOE() 공개 정적인 메소드

public static AOE ( World world, Entity self, float radius, bool players, Action callback ) : void
world wServer.realm.World
self Entity
radius float
players bool
callback Action
리턴 void

AOE() 공개 정적인 메소드

public static AOE ( World world, Position pos, float radius, bool players, Action callback ) : void
world wServer.realm.World
pos Position
radius float
players bool
callback Action
리턴 void

AOE() 보호된 메소드

protected AOE ( World world, float radius, short objType, Action callback ) : void
world wServer.realm.World
radius float
objType short
callback Action
리턴 void

AOEPet() 공개 정적인 메소드

public static AOEPet ( World world, Position pos, float radius, Action callback ) : void
world wServer.realm.World
pos Position
radius float
callback Action
리턴 void

BehaviorBase() 보호된 메소드

protected BehaviorBase ( ) : System
리턴 System

CountEntity() 보호된 메소드

protected CountEntity ( float dist, short objType ) : int
dist float
objType short
리턴 int

CountEntity() 보호된 메소드

protected CountEntity ( float dist, string group ) : int
dist float
group string
리턴 int

Dist() 공개 정적인 메소드

public static Dist ( double x1, double y1, double x2, double y2 ) : double
x1 double
y1 double
x2 double
y2 double
리턴 double

Dist() 공개 정적인 메소드

public static Dist ( Entity a, Entity b ) : float
a Entity
b Entity
리턴 float

DistSqr() 공개 정적인 메소드

public static DistSqr ( Entity a, Entity b ) : float
a Entity
b Entity
리턴 float

GetNearestEntities() 보호된 메소드

protected GetNearestEntities ( float dist, short objType ) : IEnumerable
dist float
objType short
리턴 IEnumerable

GetNearestEntitiesByGroup() 보호된 메소드

protected GetNearestEntitiesByGroup ( float dist, string group ) : IEnumerable
dist float
group string
리턴 IEnumerable

GetNearestEntity() 공개 정적인 메소드

public static GetNearestEntity ( Entity entity, float &dist, bool players, Predicate predicate = null ) : Entity
entity Entity
dist float
players bool
predicate Predicate
리턴 Entity

GetNearestEntity() 보호된 메소드

protected GetNearestEntity ( float &dist, short objType ) : Entity
dist float
objType short
리턴 Entity

GetNearestEntityByGroup() 보호된 메소드

protected GetNearestEntityByGroup ( float &dist, string group ) : Entity
dist float
group string
리턴 Entity

GetNearestEntityPet() 보호된 메소드

protected GetNearestEntityPet ( float &dist ) : Entity
dist float
리턴 Entity

GetSpeedMultiplier() 보호된 메소드

protected GetSpeedMultiplier ( Entity entity ) : float
entity Entity
리턴 float

HasPlayerNearby() 공개 정적인 메소드

public static HasPlayerNearby ( Entity entity ) : bool
entity Entity
리턴 bool

HasPlayerNearby() 공개 정적인 메소드

public static HasPlayerNearby ( World world, double x, double y ) : bool
world wServer.realm.World
x double
y double
리턴 bool

HitTestEnemy() 보호된 메소드

protected HitTestEnemy ( float x, float y ) : IEnumerable
x float
y float
리턴 IEnumerable

HitTestPlayer() 보호된 메소드

protected HitTestPlayer ( float x, float y ) : IEnumerable
x float
y float
리턴 IEnumerable

Validate() 공개 정적인 메소드

public static Validate ( Entity entity, float x, float y ) : bool
entity Entity
x float
y float
리턴 bool

Validate() 보호된 메소드

protected Validate ( float x, float y ) : bool
x float
y float
리턴 bool

ValidateAndMove() 공개 정적인 메소드

public static ValidateAndMove ( Entity entity, float x, float y ) : bool
entity Entity
x float
y float
리턴 bool

ValidateAndMove() 보호된 메소드

protected ValidateAndMove ( float x, float y ) : bool
x float
y float
리턴 bool

프로퍼티 상세

MAGIC_EYE_KEY 공개적으로 정적으로 프로퍼티

public static int MAGIC_EYE_KEY
리턴 int