C# Class DRObjects.MapBlock

Afficher le fichier Open project: Haedrian/Divine-Right Class Usage Examples

Méthodes publiques

Méthode Description
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

Method Details

ConvertToGraphicalBlock() public méthode

Converts a particular block into a graphical block
public ConvertToGraphicalBlock ( ) : GraphicalBlock
Résultat DRObjects.GraphicsEngineObjects.GraphicalBlock

ConvertToGraphicalBlock() public méthode

public ConvertToGraphicalBlock ( GlobalOverlay overlay ) : GraphicalBlock
overlay GlobalOverlay
Résultat DRObjects.GraphicsEngineObjects.GraphicalBlock

ForcePutItemOnBlock() public méthode

Puts a local map item int he current block. Whether the tile lets it or not.
public ForcePutItemOnBlock ( MapItem item ) : void
item MapItem
Résultat void

GetActions() public méthode

Gets the actions which can be performed on this Block
public GetActions ( Actor actor ) : ActionType[]
actor Actor
Résultat ActionType[]

GetItems() public méthode

Gets all items. This includes inactive ones - you might want to check that
public GetItems ( ) : DRObjects.MapItem[]
Résultat DRObjects.MapItem[]

GetTopItem() public méthode

Gets the top Item in the block. Could either be a tile, or it could be the top item
public GetTopItem ( ) : MapItem
Résultat MapItem

GetTopMapItem() public méthode

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
Résultat MapItem

MapBlock() public méthode

public MapBlock ( ) : System
Résultat System

PerformAction() public méthode

public PerformAction ( ActionType actionType, Actor actor, object args ) : ActionFeedback[]
actionType ActionType
actor Actor
args object
Résultat ActionFeedback[]

PutItemOnBlock() public méthode

Adds a local map item in the current block.
public PutItemOnBlock ( MapItem item ) : ActionFeedback[]
item MapItem
Résultat ActionFeedback[]

PutItemUnderneathOnBlock() public méthode

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
Résultat void

RemoveAllItems() public méthode

Removes all items from the MapBlock. THIS INCLUDES THE ONES WHICH ARE INACTIVE
public RemoveAllItems ( ) : void
Résultat void

RemoveItem() public méthode

Removes a particular item in the block
public RemoveItem ( MapItem item ) : void
item MapItem
Résultat void

RemoveItemAt() public méthode

Removes the Nth item in the block
public RemoveItemAt ( int index ) : void
index int
Résultat void

RemoveTopItem() public méthode

Removes the top item. If it is empty - do nothing
public RemoveTopItem ( ) : void
Résultat void

ToString() public méthode

public ToString ( ) : string
Résultat string