C# Класс OpenNos.GameObject.Map

Наследование: OpenNos.Data.MapDTO, IGameObject
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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

Защищенные методы

Метод Описание
Dispose ( bool disposing ) : void

Приватные методы

Метод Описание
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

Описание методов

AddMonster() публичный Метод

public AddMonster ( MapMonster monster ) : void
monster MapMonster
Результат void

Dispose() публичный Метод

public Dispose ( ) : void
Результат void

Dispose() защищенный Метод

protected Dispose ( bool disposing ) : void
disposing bool
Результат void

DropItemByMonster() публичный Метод

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
Результат void

GenerateUserShops() публичный Метод

public GenerateUserShops ( ) : IEnumerable
Результат IEnumerable

GetDistance() публичный статический Метод

public static GetDistance ( Character character1, Character character2 ) : int
character1 Character
character2 Character
Результат int

GetDistance() публичный статический Метод

public static GetDistance ( MapCell p, MapCell q ) : int
p MapCell
q MapCell
Результат int

GetListMonsterInRange() публичный Метод

public GetListMonsterInRange ( short mapX, short mapY, byte distance ) : List
mapX short
mapY short
distance byte
Результат List

GetMonster() публичный Метод

public GetMonster ( long mapMonsterId ) : MapMonster
mapMonsterId long
Результат MapMonster

GetNextMonsterId() публичный Метод

public GetNextMonsterId ( ) : int
Результат int

IsBlockedZone() публичный Метод

public IsBlockedZone ( int x, int y ) : bool
x int
y int
Результат bool

IsBlockedZone() публичный Метод

public IsBlockedZone ( int firstX, int firstY, int mapX, int mapY ) : bool
firstX int
firstY int
mapX int
mapY int
Результат bool

JPSPlus() публичный Метод

public JPSPlus ( JumpPointParam JumpPointParameters, GridPos cell1, GridPos cell2 ) : List
JumpPointParameters JumpPointParam
cell1 GridPos
cell2 GridPos
Результат List

LoadMonsters() публичный Метод

public LoadMonsters ( ) : void
Результат void

LoadZone() публичный Метод

public LoadZone ( ) : void
Результат void

Map() публичный Метод

public Map ( short mapId, System.Guid uniqueIdentifier, byte data ) : System
mapId short
uniqueIdentifier System.Guid
data byte
Результат System

PutItem() публичный Метод

public PutItem ( InventoryType type, short slot, byte amount, ItemInstance &inv, ClientSession session ) : MapItem
type InventoryType
slot short
amount byte
inv ItemInstance
session ClientSession
Результат MapItem

RemoveMapItem() публичный Метод

public RemoveMapItem ( ) : void
Результат void

RemoveMonster() публичный Метод

public RemoveMonster ( MapMonster monsterToRemove ) : void
monsterToRemove MapMonster
Результат void

SetMapMapMonsterReference() публичный Метод

public SetMapMapMonsterReference ( ) : void
Результат void

SetMapMapNpcReference() публичный Метод

public SetMapMapNpcReference ( ) : void
Результат void