C# Class SagaMap.Map

Afficher le fichier Open project: Willyham/SagaRO2 Class Usage Examples

Méthodes publiques

Свойство Type Description
CattleyaMapID int
CattleyaX float
CattleyaY float
CattleyaZ float

Méthodes publiques

Méthode Description
ACanSeeB ( Actor A, Actor B ) : bool
ACanSeeB ( Actor A, Actor B, float sightrange ) : bool
ACanSeeB ( Actor A, Actor B, float bx, float by ) : bool
ACanSeeB ( Actor A, float ax, float ay, Actor B ) : bool
AddItemToActor ( Actor destinationActor, Item nItem, ITEM_UPDATE_REASON reason ) : void
DeleteActor ( Actor dActor ) : void
GetActor ( uint id ) : Actor
GetActorsArea ( Actor sActor, float range, bool includeSourceActor ) : List
GetHeight ( float x, float y ) : float
GetPC ( string name ) : ActorPC
GetRandomPos ( ) : float[]
GetRegion ( float x, float y, float z ) : uint
GetRegionPlayerCount ( uint region ) : int
HasHeightMap ( ) : bool
Map ( MapInfo info ) : System
MobAIToggle ( uint region, bool toggle ) : void
MoveActor ( MOVE_TYPE mType, Actor mActor, float pos, int yaw, float accel, uint delayTime, ushort speed ) : void
MoveStepIsInRange ( Actor mActor, float to ) : bool
OnActorVisibilityChange ( Actor dActor ) : void
RegisterActor ( Actor nActor ) : bool
RegisterActor ( Actor nActor, uint SessionID ) : bool
RemoveItemFromActorPC ( ActorPC pc, byte index, int itemID, byte amount, ITEM_UPDATE_REASON reason ) : void
RemoveItemFromActorPC ( ActorPC pc, int itemID, byte amount, ITEM_UPDATE_REASON reason ) : void
SendActorToMap ( Actor mActor, Map newMap, float x, float y, float z ) : void
SendActorToMap ( Actor mActor, byte mapid, float x, float y, float z ) : void
SendEventToAllActors ( TOALL_EVENT_TYPE etype, MapEventArgs args, Actor sActor, bool sendToSourceActor ) : void
SendEventToAllActorsWhoCanSeeActor ( EVENT_TYPE etype, MapEventArgs args, Actor sActor, bool sendToSourceActor ) : void
SendTimeWeatherToActor ( Actor sActor ) : void
SendVisibleActorsToActor ( Actor jActor ) : void
UpdateTime ( byte day, byte hour, byte min ) : void
UpdateTimeAndWeather ( byte day, byte hour, byte min, Global weather ) : void
UpdateWeather ( Global weather ) : void

Private Methods

Méthode Description
GetNewActorID ( ActorType type ) : uint
SendActorToActor ( Actor mActor, Actor tActor ) : void
TeleportActor ( Actor sActor, float x, float y, float z ) : void

Method Details

ACanSeeB() public méthode

public ACanSeeB ( Actor A, Actor B ) : bool
A SagaDB.Actors.Actor
B SagaDB.Actors.Actor
Résultat bool

ACanSeeB() public méthode

public ACanSeeB ( Actor A, Actor B, float sightrange ) : bool
A SagaDB.Actors.Actor
B SagaDB.Actors.Actor
sightrange float
Résultat bool

ACanSeeB() public méthode

public ACanSeeB ( Actor A, Actor B, float bx, float by ) : bool
A SagaDB.Actors.Actor
B SagaDB.Actors.Actor
bx float
by float
Résultat bool

ACanSeeB() public méthode

public ACanSeeB ( Actor A, float ax, float ay, Actor B ) : bool
A SagaDB.Actors.Actor
ax float
ay float
B SagaDB.Actors.Actor
Résultat bool

AddItemToActor() public méthode

public AddItemToActor ( Actor destinationActor, Item nItem, ITEM_UPDATE_REASON reason ) : void
destinationActor SagaDB.Actors.Actor
nItem Item
reason ITEM_UPDATE_REASON
Résultat void

DeleteActor() public méthode

public DeleteActor ( Actor dActor ) : void
dActor SagaDB.Actors.Actor
Résultat void

GetActor() public méthode

public GetActor ( uint id ) : Actor
id uint
Résultat SagaDB.Actors.Actor

GetActorsArea() public méthode

public GetActorsArea ( Actor sActor, float range, bool includeSourceActor ) : List
sActor SagaDB.Actors.Actor
range float
includeSourceActor bool
Résultat List

GetHeight() public méthode

public GetHeight ( float x, float y ) : float
x float
y float
Résultat float

GetPC() public méthode

public GetPC ( string name ) : ActorPC
name string
Résultat SagaDB.Actors.ActorPC

GetRandomPos() public méthode

public GetRandomPos ( ) : float[]
Résultat float[]

GetRegion() public méthode

public GetRegion ( float x, float y, float z ) : uint
x float
y float
z float
Résultat uint

GetRegionPlayerCount() public méthode

public GetRegionPlayerCount ( uint region ) : int
region uint
Résultat int

HasHeightMap() public méthode

public HasHeightMap ( ) : bool
Résultat bool

Map() public méthode

public Map ( MapInfo info ) : System
info SagaMap.Manager.MapInfo
Résultat System

MobAIToggle() public méthode

public MobAIToggle ( uint region, bool toggle ) : void
region uint
toggle bool
Résultat void

MoveActor() public méthode

public MoveActor ( MOVE_TYPE mType, Actor mActor, float pos, int yaw, float accel, uint delayTime, ushort speed ) : void
mType MOVE_TYPE
mActor SagaDB.Actors.Actor
pos float
yaw int
accel float
delayTime uint
speed ushort
Résultat void

MoveStepIsInRange() public méthode

public MoveStepIsInRange ( Actor mActor, float to ) : bool
mActor SagaDB.Actors.Actor
to float
Résultat bool

OnActorVisibilityChange() public méthode

public OnActorVisibilityChange ( Actor dActor ) : void
dActor SagaDB.Actors.Actor
Résultat void

RegisterActor() public méthode

public RegisterActor ( Actor nActor ) : bool
nActor SagaDB.Actors.Actor
Résultat bool

RegisterActor() public méthode

public RegisterActor ( Actor nActor, uint SessionID ) : bool
nActor SagaDB.Actors.Actor
SessionID uint
Résultat bool

RemoveItemFromActorPC() public méthode

public RemoveItemFromActorPC ( ActorPC pc, byte index, int itemID, byte amount, ITEM_UPDATE_REASON reason ) : void
pc SagaDB.Actors.ActorPC
index byte
itemID int
amount byte
reason ITEM_UPDATE_REASON
Résultat void

RemoveItemFromActorPC() public méthode

public RemoveItemFromActorPC ( ActorPC pc, int itemID, byte amount, ITEM_UPDATE_REASON reason ) : void
pc SagaDB.Actors.ActorPC
itemID int
amount byte
reason ITEM_UPDATE_REASON
Résultat void

SendActorToMap() public méthode

public SendActorToMap ( Actor mActor, Map newMap, float x, float y, float z ) : void
mActor SagaDB.Actors.Actor
newMap Map
x float
y float
z float
Résultat void

SendActorToMap() public méthode

public SendActorToMap ( Actor mActor, byte mapid, float x, float y, float z ) : void
mActor SagaDB.Actors.Actor
mapid byte
x float
y float
z float
Résultat void

SendEventToAllActors() public méthode

public SendEventToAllActors ( TOALL_EVENT_TYPE etype, MapEventArgs args, Actor sActor, bool sendToSourceActor ) : void
etype TOALL_EVENT_TYPE
args MapEventArgs
sActor SagaDB.Actors.Actor
sendToSourceActor bool
Résultat void

SendEventToAllActorsWhoCanSeeActor() public méthode

public SendEventToAllActorsWhoCanSeeActor ( EVENT_TYPE etype, MapEventArgs args, Actor sActor, bool sendToSourceActor ) : void
etype EVENT_TYPE
args MapEventArgs
sActor SagaDB.Actors.Actor
sendToSourceActor bool
Résultat void

SendTimeWeatherToActor() public méthode

public SendTimeWeatherToActor ( Actor sActor ) : void
sActor SagaDB.Actors.Actor
Résultat void

SendVisibleActorsToActor() public méthode

public SendVisibleActorsToActor ( Actor jActor ) : void
jActor SagaDB.Actors.Actor
Résultat void

UpdateTime() public méthode

public UpdateTime ( byte day, byte hour, byte min ) : void
day byte
hour byte
min byte
Résultat void

UpdateTimeAndWeather() public méthode

public UpdateTimeAndWeather ( byte day, byte hour, byte min, Global weather ) : void
day byte
hour byte
min byte
weather Global
Résultat void

UpdateWeather() public méthode

public UpdateWeather ( Global weather ) : void
weather Global
Résultat void

Property Details

CattleyaMapID public_oe property

public int CattleyaMapID
Résultat int

CattleyaX public_oe property

public float CattleyaX
Résultat float

CattleyaY public_oe property

public float CattleyaY
Résultat float

CattleyaZ public_oe property

public float CattleyaZ
Résultat float