C# Класс DRObjects.MapBlock

Показать файл Открыть проект Примеры использования класса

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

Метод Описание
ConvertToGraphicalBlock ( ) : GraphicalBlock

Converts a particular block into a graphical block

ConvertToGraphicalBlock ( GlobalOverlay overlay ) : GraphicalBlock
ForcePutItemOnBlock ( MapItem item ) : void

Puts a local map item int he current block. Whether the tile lets it or not.

GetActions ( Actor actor ) : ActionType[]

Gets the actions which can be performed on this Block

GetItems ( ) : DRObjects.MapItem[]

Gets all items. This includes inactive ones - you might want to check that

GetTopItem ( ) : MapItem

Gets the top Item in the block. Could either be a tile, or it could be the top item

GetTopMapItem ( ) : MapItem

Gets the top mapitem in the stack, or null if there is no item. It will check if the map item is active or not before showing it.

MapBlock ( ) : System
PerformAction ( ActionType actionType, Actor actor, object args ) : ActionFeedback[]
PutItemOnBlock ( MapItem item ) : ActionFeedback[]

Adds a local map item in the current block.

PutItemUnderneathOnBlock ( MapItem item ) : void

Puts a local map item in the current block. Whether the tile lets it or not. Will put it in second place (underneath the top item)

RemoveAllItems ( ) : void

Removes all items from the MapBlock. THIS INCLUDES THE ONES WHICH ARE INACTIVE

RemoveItem ( MapItem item ) : void

Removes a particular item in the block

RemoveItemAt ( int index ) : void

Removes the Nth item in the block

RemoveTopItem ( ) : void

Removes the top item. If it is empty - do nothing

ToString ( ) : string

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

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

Converts a particular block into a graphical block
public ConvertToGraphicalBlock ( ) : GraphicalBlock
Результат DRObjects.GraphicsEngineObjects.GraphicalBlock

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

public ConvertToGraphicalBlock ( GlobalOverlay overlay ) : GraphicalBlock
overlay GlobalOverlay
Результат DRObjects.GraphicsEngineObjects.GraphicalBlock

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

Puts a local map item int he current block. Whether the tile lets it or not.
public ForcePutItemOnBlock ( MapItem item ) : void
item MapItem
Результат void

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

Gets the actions which can be performed on this Block
public GetActions ( Actor actor ) : ActionType[]
actor Actor
Результат ActionType[]

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

Gets all items. This includes inactive ones - you might want to check that
public GetItems ( ) : DRObjects.MapItem[]
Результат DRObjects.MapItem[]

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

Gets the top Item in the block. Could either be a tile, or it could be the top item
public GetTopItem ( ) : MapItem
Результат MapItem

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

Gets the top mapitem in the stack, or null if there is no item. It will check if the map item is active or not before showing it.
public GetTopMapItem ( ) : MapItem
Результат MapItem

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

public MapBlock ( ) : System
Результат System

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

public PerformAction ( ActionType actionType, Actor actor, object args ) : ActionFeedback[]
actionType ActionType
actor Actor
args object
Результат ActionFeedback[]

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

Adds a local map item in the current block.
public PutItemOnBlock ( MapItem item ) : ActionFeedback[]
item MapItem
Результат ActionFeedback[]

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

Puts a local map item in the current block. Whether the tile lets it or not. Will put it in second place (underneath the top item)
public PutItemUnderneathOnBlock ( MapItem item ) : void
item MapItem
Результат void

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

Removes all items from the MapBlock. THIS INCLUDES THE ONES WHICH ARE INACTIVE
public RemoveAllItems ( ) : void
Результат void

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

Removes a particular item in the block
public RemoveItem ( MapItem item ) : void
item MapItem
Результат void

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

Removes the Nth item in the block
public RemoveItemAt ( int index ) : void
index int
Результат void

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

Removes the top item. If it is empty - do nothing
public RemoveTopItem ( ) : void
Результат void

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

public ToString ( ) : string
Результат string