C# Class invertika_game.Game.Being

Inheritance: Actor
Show file Open project: Invertika/server Class Usage Examples

Protected Properties

Property Type Description
mAction BeingAction
mAttributes Attribute>.Dictionary
mAutoAttacks AutoAttacks
mDst Point
mGender BeingGender
mMoveTime ushort
mOld Point
mStatus Status>.Dictionary
mTarget Being

Public Methods

Method Description
Being ( ThingType type ) : System
applyStatusEffect ( int id, int timer ) : void
clearDestination ( ) : void
getGender ( ) : BeingGender
getOldPosition ( ) : Point
move ( ) : void
perform ( ) : void
setAttribute ( uint id, double value ) : void
setDestination ( Point dst ) : void
setGender ( BeingGender gender ) : void
setModAttribute ( uint a, double b ) : void
setName ( string name ) : void

Protected Methods

Method Description
applyModifier ( uint attr, double value, uint layer, uint duration, uint id ) : void
died ( ) : void
heal ( ) : void
heal ( int gain ) : void
inserted ( ) : void
removeStatusEffect ( int id ) : void
setAction ( BeingAction action ) : void
setStatusEffectTime ( int id, int time ) : void
setTimerHard ( TimerID id, int value ) : void
setTimerSoft ( TimerID id, int value ) : void
update ( ) : void
updateDerivedAttributes ( uint attr ) : void
updateDirection ( Point currentPos, Point destPos ) : void

Private Methods

Method Description
checkAttributeExists ( uint id ) : bool
damage ( Actor source, Damage damage ) : int
directionToAngle ( int direction ) : int
findPath ( ) : List
getAttribute ( uint id ) : double
getModifiedAttribute ( uint id ) : double
getStatusEffectTime ( int id ) : uint
getTimer ( TimerID id ) : int
hasStatusEffect ( int id ) : bool
isTimerJustFinished ( TimerID id ) : bool
isTimerRunning ( TimerID id ) : bool
performAttack ( Being target, Damage damage ) : int
recalculateBaseAttribute ( uint attr ) : bool
removeModifier ( uint attr, double value, uint layer, uint id, bool fullcheck ) : bool

Method Details

Being() public method

public Being ( ThingType type ) : System
type ThingType
return System

applyModifier() protected method

protected applyModifier ( uint attr, double value, uint layer, uint duration, uint id ) : void
attr uint
value double
layer uint
duration uint
id uint
return void

applyStatusEffect() public method

public applyStatusEffect ( int id, int timer ) : void
id int
timer int
return void

clearDestination() public method

public clearDestination ( ) : void
return void

died() protected method

protected died ( ) : void
return void

getGender() public method

public getGender ( ) : BeingGender
return BeingGender

getOldPosition() public method

public getOldPosition ( ) : Point
return Point

heal() protected method

protected heal ( ) : void
return void

heal() protected method

protected heal ( int gain ) : void
gain int
return void

inserted() protected method

protected inserted ( ) : void
return void

move() public method

public move ( ) : void
return void

perform() public method

public perform ( ) : void
return void

removeStatusEffect() protected method

protected removeStatusEffect ( int id ) : void
id int
return void

setAction() protected method

protected setAction ( BeingAction action ) : void
action BeingAction
return void

setAttribute() public method

public setAttribute ( uint id, double value ) : void
id uint
value double
return void

setDestination() public method

public setDestination ( Point dst ) : void
dst Point
return void

setGender() public method

public setGender ( BeingGender gender ) : void
gender BeingGender
return void

setModAttribute() public method

public setModAttribute ( uint a, double b ) : void
a uint
b double
return void

setName() public method

public setName ( string name ) : void
name string
return void

setStatusEffectTime() protected method

protected setStatusEffectTime ( int id, int time ) : void
id int
time int
return void

setTimerHard() protected method

protected setTimerHard ( TimerID id, int value ) : void
id TimerID
value int
return void

setTimerSoft() protected method

protected setTimerSoft ( TimerID id, int value ) : void
id TimerID
value int
return void

update() protected method

protected update ( ) : void
return void

updateDerivedAttributes() protected method

protected updateDerivedAttributes ( uint attr ) : void
attr uint
return void

updateDirection() protected method

protected updateDirection ( Point currentPos, Point destPos ) : void
currentPos Point
destPos Point
return void

Property Details

mAction protected property

protected BeingAction mAction
return BeingAction

mAttributes protected property

protected Dictionary mAttributes
return Attribute>.Dictionary

mAutoAttacks protected property

protected AutoAttacks mAutoAttacks
return AutoAttacks

mDst protected property

protected Point mDst
return Point

mGender protected property

protected BeingGender mGender
return BeingGender

mMoveTime protected property

protected ushort mMoveTime
return ushort

mOld protected property

protected Point mOld
return Point

mStatus protected property

protected Dictionary mStatus
return Status>.Dictionary

mTarget protected property

protected Being,invertika_game.Game mTarget
return Being