C# Class DRObjects.MapItem

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

Méthodes publiques

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

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
Résultat ActionType[]

MapItem() public méthode

Creates a default map item
public MapItem ( ) : System
Résultat System

MapItem() public méthode

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

PerformAction() public méthode

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
Résultat ActionFeedback[]

ToString() public méthode

public ToString ( ) : string
Résultat string