C# Class SagaMap.Map

显示文件 Open project: Willyham/SagaRO2 Class Usage Examples

Public Properties

Property Type Description
CattleyaMapID int
CattleyaX float
CattleyaY float
CattleyaZ float

Public Methods

Method 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

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

public ACanSeeB ( Actor A, Actor B ) : bool
A SagaDB.Actors.Actor
B SagaDB.Actors.Actor
return bool

ACanSeeB() public method

public ACanSeeB ( Actor A, Actor B, float sightrange ) : bool
A SagaDB.Actors.Actor
B SagaDB.Actors.Actor
sightrange float
return bool

ACanSeeB() public method

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

ACanSeeB() public method

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

AddItemToActor() public method

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

DeleteActor() public method

public DeleteActor ( Actor dActor ) : void
dActor SagaDB.Actors.Actor
return void

GetActor() public method

public GetActor ( uint id ) : Actor
id uint
return SagaDB.Actors.Actor

GetActorsArea() public method

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

GetHeight() public method

public GetHeight ( float x, float y ) : float
x float
y float
return float

GetPC() public method

public GetPC ( string name ) : ActorPC
name string
return SagaDB.Actors.ActorPC

GetRandomPos() public method

public GetRandomPos ( ) : float[]
return float[]

GetRegion() public method

public GetRegion ( float x, float y, float z ) : uint
x float
y float
z float
return uint

GetRegionPlayerCount() public method

public GetRegionPlayerCount ( uint region ) : int
region uint
return int

HasHeightMap() public method

public HasHeightMap ( ) : bool
return bool

Map() public method

public Map ( MapInfo info ) : System
info SagaMap.Manager.MapInfo
return System

MobAIToggle() public method

public MobAIToggle ( uint region, bool toggle ) : void
region uint
toggle bool
return void

MoveActor() public method

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

MoveStepIsInRange() public method

public MoveStepIsInRange ( Actor mActor, float to ) : bool
mActor SagaDB.Actors.Actor
to float
return bool

OnActorVisibilityChange() public method

public OnActorVisibilityChange ( Actor dActor ) : void
dActor SagaDB.Actors.Actor
return void

RegisterActor() public method

public RegisterActor ( Actor nActor ) : bool
nActor SagaDB.Actors.Actor
return bool

RegisterActor() public method

public RegisterActor ( Actor nActor, uint SessionID ) : bool
nActor SagaDB.Actors.Actor
SessionID uint
return bool

RemoveItemFromActorPC() public method

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

RemoveItemFromActorPC() public method

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

SendActorToMap() public method

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

SendActorToMap() public method

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

SendEventToAllActors() public method

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

SendEventToAllActorsWhoCanSeeActor() public method

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

SendTimeWeatherToActor() public method

public SendTimeWeatherToActor ( Actor sActor ) : void
sActor SagaDB.Actors.Actor
return void

SendVisibleActorsToActor() public method

public SendVisibleActorsToActor ( Actor jActor ) : void
jActor SagaDB.Actors.Actor
return void

UpdateTime() public method

public UpdateTime ( byte day, byte hour, byte min ) : void
day byte
hour byte
min byte
return void

UpdateTimeAndWeather() public method

public UpdateTimeAndWeather ( byte day, byte hour, byte min, Global weather ) : void
day byte
hour byte
min byte
weather Global
return void

UpdateWeather() public method

public UpdateWeather ( Global weather ) : void
weather Global
return void

Property Details

CattleyaMapID public_oe property

public int CattleyaMapID
return int

CattleyaX public_oe property

public float CattleyaX
return float

CattleyaY public_oe property

public float CattleyaY
return float

CattleyaZ public_oe property

public float CattleyaZ
return float