C# 클래스 DRObjects.MapBlock

파일 보기 프로젝트 열기: Haedrian/Divine-Right 1 사용 예제들

공개 메소드들

메소드 설명
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