C# Класс Divine_Right.InterfaceComponents.Components.HealthDisplayComponent

An interface component which shows the health of the actor in question
Наследование: IGameInterfaceComponent
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

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

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

Метод Описание
Draw ( Microsoft content, Microsoft batch ) : void
HandleClick ( int x, int y, System.Objects mouseAction, DRObjects &actionType, InternalActionEnum &internalActionType, object &args, MapItem &item, DRObjects &coord, bool &destroy ) : bool
HandleKeyboard ( Microsoft keyboard, DRObjects &actionType, object &args, DRObjects &coord, bool &destroy ) : bool
HandleMouseOver ( int x, int y ) : void
HealthDisplayComponent ( int locationX, int locationY, Actor actor ) : System

Creates a new HealthDisplayComponent for a particular actor at a particular position

IsModal ( ) : bool
PerformDrag ( int x, int y ) : void
ReturnLocation ( ) : Rectangle

Приватные методы

Метод Описание
GetBadEffectColours ( int amount, int max ) : Color

Gets the right colour to draw depending on how bad it is

GetColour ( int health, int maxHealth ) : Color

Gets the right colour to draw depending on the health

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

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

public Draw ( Microsoft content, Microsoft batch ) : void
content Microsoft
batch Microsoft
Результат void

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

public HandleClick ( int x, int y, System.Objects mouseAction, DRObjects &actionType, InternalActionEnum &internalActionType, object &args, MapItem &item, DRObjects &coord, bool &destroy ) : bool
x int
y int
mouseAction System.Objects
actionType DRObjects
internalActionType InternalActionEnum
args object
item DRObjects.MapItem
coord DRObjects
destroy bool
Результат bool

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

public HandleKeyboard ( Microsoft keyboard, DRObjects &actionType, object &args, DRObjects &coord, bool &destroy ) : bool
keyboard Microsoft
actionType DRObjects
args object
coord DRObjects
destroy bool
Результат bool

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

public HandleMouseOver ( int x, int y ) : void
x int
y int
Результат void

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

Creates a new HealthDisplayComponent for a particular actor at a particular position
public HealthDisplayComponent ( int locationX, int locationY, Actor actor ) : System
locationX int
locationY int
actor DRObjects.Actor
Результат System

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

public IsModal ( ) : bool
Результат bool

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

public PerformDrag ( int x, int y ) : void
x int
y int
Результат void

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

public ReturnLocation ( ) : Rectangle
Результат Microsoft.Xna.Framework.Rectangle

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

locationX защищенное свойство

protected int locationX
Результат int

locationY защищенное свойство

protected int locationY
Результат int