C# Класс wServer.logic.BehaviorBase

Показать файл Открыть проект

Открытые свойства

Свойство Тип Описание
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