C# Класс DRObjects.MapItem

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

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

Метод Описание
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

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

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

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
Результат ActionType[]

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

Creates a default map item
public MapItem ( ) : System
Результат System

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

Creates a default map item at a current location
public MapItem ( MapCoordinate coordinate ) : System
coordinate MapCoordinate
Результат System

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

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
Результат ActionFeedback[]

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

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