C# Class wServer.logic.BehaviorBase

Datei anzeigen Open project: C453/OryxKingdom

Public Properties

Property Type Description
MAGIC_EYE_KEY int

Public Methods

Method Description
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

Protected Methods

Method Description
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

Method Details

AOE() public static method

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
return void

AOE() public static method

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
return void

AOE() protected method

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

AOEPet() public static method

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

BehaviorBase() protected method

protected BehaviorBase ( ) : System
return System

CountEntity() protected method

protected CountEntity ( float dist, short objType ) : int
dist float
objType short
return int

CountEntity() protected method

protected CountEntity ( float dist, string group ) : int
dist float
group string
return int

Dist() public static method

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

Dist() public static method

public static Dist ( Entity a, Entity b ) : float
a Entity
b Entity
return float

DistSqr() public static method

public static DistSqr ( Entity a, Entity b ) : float
a Entity
b Entity
return float

GetNearestEntities() protected method

protected GetNearestEntities ( float dist, short objType ) : IEnumerable
dist float
objType short
return IEnumerable

GetNearestEntitiesByGroup() protected method

protected GetNearestEntitiesByGroup ( float dist, string group ) : IEnumerable
dist float
group string
return IEnumerable

GetNearestEntity() public static method

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

GetNearestEntity() protected method

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

GetNearestEntityByGroup() protected method

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

GetNearestEntityPet() protected method

protected GetNearestEntityPet ( float &dist ) : Entity
dist float
return Entity

GetSpeedMultiplier() protected method

protected GetSpeedMultiplier ( Entity entity ) : float
entity Entity
return float

HasPlayerNearby() public static method

public static HasPlayerNearby ( Entity entity ) : bool
entity Entity
return bool

HasPlayerNearby() public static method

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

HitTestEnemy() protected method

protected HitTestEnemy ( float x, float y ) : IEnumerable
x float
y float
return IEnumerable

HitTestPlayer() protected method

protected HitTestPlayer ( float x, float y ) : IEnumerable
x float
y float
return IEnumerable

Validate() public static method

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

Validate() protected method

protected Validate ( float x, float y ) : bool
x float
y float
return bool

ValidateAndMove() public static method

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

ValidateAndMove() protected method

protected ValidateAndMove ( float x, float y ) : bool
x float
y float
return bool

Property Details

MAGIC_EYE_KEY public_oe static_oe property

public static int MAGIC_EYE_KEY
return int