C# Class DRObjects.MapItem

Mostra file Open project: Haedrian/Divine-Right Class Usage Examples

Public Methods

Method Description
GetPossibleActions ( Actor actor ) : ActionType[]

Returns the list of actions which are possible upon this tile or item For mundane tiles and items, the following are default for the player character Other details to be added later.

MapItem ( ) : System

Creates a default map item

MapItem ( MapCoordinate coordinate ) : System

Creates a default map item at a current location

PerformAction ( ActionType actionType, Actor actor, object args ) : ActionFeedback[]

Defines what happens when an action is performed upon the tile or item. These are the default values.

ToString ( ) : string

Method Details

GetPossibleActions() public method

Returns the list of actions which are possible upon this tile or item For mundane tiles and items, the following are default for the player character Other details to be added later.
public GetPossibleActions ( Actor actor ) : ActionType[]
actor Actor
return ActionType[]

MapItem() public method

Creates a default map item
public MapItem ( ) : System
return System

MapItem() public method

Creates a default map item at a current location
public MapItem ( MapCoordinate coordinate ) : System
coordinate MapCoordinate
return System

PerformAction() public method

Defines what happens when an action is performed upon the tile or item. These are the default values.
public PerformAction ( ActionType actionType, Actor actor, object args ) : ActionFeedback[]
actionType ActionType
actor Actor
args object
return ActionFeedback[]

ToString() public method

public ToString ( ) : string
return string