C# Class OpenNos.GameObject.Map

Inheritance: OpenNos.Data.MapDTO, IGameObject
Exibir arquivo Open project: OpenNos/OpenNos Class Usage Examples

Public Methods

Method Description
AddMonster ( MapMonster monster ) : void
Dispose ( ) : void
DropItemByMonster ( long Owner, DropDTO drop, short mapX, short mapY, int gold ) : void
GenerateUserShops ( ) : IEnumerable
GetDistance ( Character character1, Character character2 ) : int
GetDistance ( MapCell p, MapCell q ) : int
GetListMonsterInRange ( short mapX, short mapY, byte distance ) : List
GetMonster ( long mapMonsterId ) : MapMonster
GetNextMonsterId ( ) : int
IsBlockedZone ( int x, int y ) : bool
IsBlockedZone ( int firstX, int firstY, int mapX, int mapY ) : bool
JPSPlus ( JumpPointParam JumpPointParameters, GridPos cell1, GridPos cell2 ) : List
LoadMonsters ( ) : void
LoadZone ( ) : void
Map ( short mapId, System.Guid uniqueIdentifier, byte data ) : System
PutItem ( InventoryType type, short slot, byte amount, ItemInstance &inv, ClientSession session ) : MapItem
RemoveMapItem ( ) : void
RemoveMonster ( MapMonster monsterToRemove ) : void
SetMapMapMonsterReference ( ) : void
SetMapMapNpcReference ( ) : void

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Private Methods

Method Description
GetCharactersInRange ( short mapX, short mapY, byte distance ) : IEnumerable
GetFreePosition ( short &firstX, short &firstY, byte xpoint, byte ypoint ) : bool
RemoveMonstersTarget ( long characterId ) : void
StraightPath ( GridPos mapCell1, GridPos mapCell2 ) : List

Method Details

AddMonster() public method

public AddMonster ( MapMonster monster ) : void
monster MapMonster
return void

Dispose() public method

public Dispose ( ) : void
return void

Dispose() protected method

protected Dispose ( bool disposing ) : void
disposing bool
return void

DropItemByMonster() public method

public DropItemByMonster ( long Owner, DropDTO drop, short mapX, short mapY, int gold ) : void
Owner long
drop OpenNos.Data.DropDTO
mapX short
mapY short
gold int
return void

GenerateUserShops() public method

public GenerateUserShops ( ) : IEnumerable
return IEnumerable

GetDistance() public static method

public static GetDistance ( Character character1, Character character2 ) : int
character1 Character
character2 Character
return int

GetDistance() public static method

public static GetDistance ( MapCell p, MapCell q ) : int
p MapCell
q MapCell
return int

GetListMonsterInRange() public method

public GetListMonsterInRange ( short mapX, short mapY, byte distance ) : List
mapX short
mapY short
distance byte
return List

GetMonster() public method

public GetMonster ( long mapMonsterId ) : MapMonster
mapMonsterId long
return MapMonster

GetNextMonsterId() public method

public GetNextMonsterId ( ) : int
return int

IsBlockedZone() public method

public IsBlockedZone ( int x, int y ) : bool
x int
y int
return bool

IsBlockedZone() public method

public IsBlockedZone ( int firstX, int firstY, int mapX, int mapY ) : bool
firstX int
firstY int
mapX int
mapY int
return bool

JPSPlus() public method

public JPSPlus ( JumpPointParam JumpPointParameters, GridPos cell1, GridPos cell2 ) : List
JumpPointParameters JumpPointParam
cell1 GridPos
cell2 GridPos
return List

LoadMonsters() public method

public LoadMonsters ( ) : void
return void

LoadZone() public method

public LoadZone ( ) : void
return void

Map() public method

public Map ( short mapId, System.Guid uniqueIdentifier, byte data ) : System
mapId short
uniqueIdentifier System.Guid
data byte
return System

PutItem() public method

public PutItem ( InventoryType type, short slot, byte amount, ItemInstance &inv, ClientSession session ) : MapItem
type InventoryType
slot short
amount byte
inv ItemInstance
session ClientSession
return MapItem

RemoveMapItem() public method

public RemoveMapItem ( ) : void
return void

RemoveMonster() public method

public RemoveMonster ( MapMonster monsterToRemove ) : void
monsterToRemove MapMonster
return void

SetMapMapMonsterReference() public method

public SetMapMapMonsterReference ( ) : void
return void

SetMapMapNpcReference() public method

public SetMapMapNpcReference ( ) : void
return void