C# Класс DRObjects.Items.Archetypes.Local.Potion

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

Private Properties

Свойство Тип Описание

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

Метод Описание
GetPossibleActions ( Actor actor ) : ActionType[]
PerformAction ( ActionType actionType, Actor actor, object args ) : ActionFeedback[]
Potion ( PotionType type ) : System
ThrowUpon ( Actor attacker, List actors ) : ActionFeedback[]

The effect to apply when the potion is thrown upon the actors. Also handles learnign (for those which give an effect) and feedback

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

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

public GetPossibleActions ( Actor actor ) : ActionType[]
actor Actor
Результат ActionType[]

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

public PerformAction ( ActionType actionType, Actor actor, object args ) : ActionFeedback[]
actionType ActionType
actor Actor
args object
Результат ActionFeedback[]

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

public Potion ( PotionType type ) : System
type PotionType
Результат System

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

The effect to apply when the potion is thrown upon the actors. Also handles learnign (for those which give an effect) and feedback
public ThrowUpon ( Actor attacker, List actors ) : ActionFeedback[]
attacker Actor
actors List
Результат ActionFeedback[]