C# Class GrandLarceny.Guard

Inheritance: GrandLarceny.GuardEntity
显示文件 Open project: melburn/GLhf

Public Methods

Method Description
Guard ( Vector2 a_posV2, String a_sprite, float a_patrolPoint, System.Boolean a_hasFlashLight, float a_layer ) : System
Guard ( Vector2 a_posV2, String a_sprite, float a_leftpatrolPoint, float a_rightpatrolPoint, System.Boolean a_hasFlashLight, float a_layer ) : System
ToString ( ) : string
addLampSwitchTarget ( GrandLarceny.LampSwitch a_lampSwitch ) : void
canHearPlayer ( ) : bool
canSeePlayer ( ) : bool
canSeePoint ( Vector2 a_point ) : bool
canStrike ( ) : bool
flip ( ) : void
getHuhSound ( ) : GrandLarceny.Sound
guardFaceRight ( ) : bool
hasNoLampSwitchTargets ( ) : bool
isFacingRight ( ) : bool
isFacingTowards ( float a_x ) : bool
isFlashLightAddicted ( ) : bool
kill ( ) : void
linkObject ( ) : void
loadContent ( ) : void
removeLampSwitchTarget ( GrandLarceny.LampSwitch a_lampSwitch ) : void
setChaseTarget ( Entity a_target ) : void
toggleFlashLightAddicted ( ) : void
update ( GameTime a_gameTime ) : void

Private Methods

Method Description
chasePlayer ( ) : void
collisionCheck ( List a_collisionList ) : void
faceTowards ( float a_x ) : bool
getChaseTarget ( ) : Entity
getFirstLampSwitchTarget ( ) : GrandLarceny.LampSwitch
goLeft ( ) : void
goRight ( ) : void
hasFlash ( ) : bool
hasPatrol ( ) : bool
isCarryingFlash ( ) : bool
isRunning ( ) : bool
isStriking ( ) : bool
removeFirstLampSwitchTarget ( ) : void
setRunning ( bool a_running ) : void
stop ( ) : void
strike ( ) : void
toggleFlashLight ( ) : void

Method Details

Guard() public method

public Guard ( Vector2 a_posV2, String a_sprite, float a_patrolPoint, System.Boolean a_hasFlashLight, float a_layer ) : System
a_posV2 Vector2
a_sprite String
a_patrolPoint float
a_hasFlashLight System.Boolean
a_layer float
return System

Guard() public method

public Guard ( Vector2 a_posV2, String a_sprite, float a_leftpatrolPoint, float a_rightpatrolPoint, System.Boolean a_hasFlashLight, float a_layer ) : System
a_posV2 Vector2
a_sprite String
a_leftpatrolPoint float
a_rightpatrolPoint float
a_hasFlashLight System.Boolean
a_layer float
return System

ToString() public method

public ToString ( ) : string
return string

addLampSwitchTarget() public method

public addLampSwitchTarget ( GrandLarceny.LampSwitch a_lampSwitch ) : void
a_lampSwitch GrandLarceny.LampSwitch
return void

canHearPlayer() public method

public canHearPlayer ( ) : bool
return bool

canSeePlayer() public method

public canSeePlayer ( ) : bool
return bool

canSeePoint() public method

public canSeePoint ( Vector2 a_point ) : bool
a_point Vector2
return bool

canStrike() public method

public canStrike ( ) : bool
return bool

flip() public method

public flip ( ) : void
return void

getHuhSound() public method

public getHuhSound ( ) : GrandLarceny.Sound
return GrandLarceny.Sound

guardFaceRight() public method

public guardFaceRight ( ) : bool
return bool

hasNoLampSwitchTargets() public method

public hasNoLampSwitchTargets ( ) : bool
return bool

isFacingRight() public method

public isFacingRight ( ) : bool
return bool

isFacingTowards() public method

public isFacingTowards ( float a_x ) : bool
a_x float
return bool

isFlashLightAddicted() public method

public isFlashLightAddicted ( ) : bool
return bool

kill() public method

public kill ( ) : void
return void

linkObject() public method

public linkObject ( ) : void
return void

loadContent() public method

public loadContent ( ) : void
return void

removeLampSwitchTarget() public method

public removeLampSwitchTarget ( GrandLarceny.LampSwitch a_lampSwitch ) : void
a_lampSwitch GrandLarceny.LampSwitch
return void

setChaseTarget() public method

public setChaseTarget ( Entity a_target ) : void
a_target Entity
return void

toggleFlashLightAddicted() public method

public toggleFlashLightAddicted ( ) : void
return void

update() public method

public update ( GameTime a_gameTime ) : void
a_gameTime Microsoft.Xna.Framework.GameTime
return void