C# 클래스 Divine_Right.InterfaceComponents.Components.HealthDisplayComponent

An interface component which shows the health of the actor in question
상속: IGameInterfaceComponent
파일 보기 프로젝트 열기: Haedrian/Divine-Right 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
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