C# Class Dodgeball.Game.Player

Inheritance: Sprite
Show file Open project: schonstal/BLOODBALL Class Usage Examples

Public Properties

Property Type Description
courtPosition CourtPosition
playerIndex PlayerIndex
shadow PlayerShadow
team Team

Public Methods

Method Description
FlingBall ( ) : void
Player ( PlayerIndex playerIndex, Team team, Vector2 submatrix, CourtPosition position ) : System
Update ( ) : void
addAnimation ( string name, List frames, int fps = 15, bool looped = false ) : void
blockBall ( Ball ball ) : void
catchBall ( Ball ball ) : void
dropBall ( ) : void
hitByBall ( Ball ball ) : void
hitRumble ( Ball ball ) : void
onCollide ( Ball ball ) : void
onHurtFallCallback ( int frameIndex ) : void
onHurtRecoverCompleteCallback ( int frameIndex ) : void
onParryReturn ( int frameIndex ) : void
onThrowCallback ( int frameIndex ) : void
onThrowCompleteCallback ( int frameIndex ) : void
onThrowReturnCompleteCallback ( int frameIndex ) : void
panPosition ( float panFactor = 0.25f ) : float
parry ( ) : void
play ( string animation ) : void
playHitSound ( ) : void
postUpdate ( ) : void
takeBall ( Ball ball ) : void
updateAnimation ( ) : void
updateHeading ( ) : void
updatePhysics ( ) : void

Private Methods

Method Description
forwardOn ( bool isForward ) : string

Method Details

FlingBall() public method

public FlingBall ( ) : void
return void

Player() public method

public Player ( PlayerIndex playerIndex, Team team, Vector2 submatrix, CourtPosition position ) : System
playerIndex PlayerIndex
team Team
submatrix Vector2
position CourtPosition
return System

Update() public method

public Update ( ) : void
return void

addAnimation() public method

public addAnimation ( string name, List frames, int fps = 15, bool looped = false ) : void
name string
frames List
fps int
looped bool
return void

blockBall() public method

public blockBall ( Ball ball ) : void
ball Ball
return void

catchBall() public method

public catchBall ( Ball ball ) : void
ball Ball
return void

dropBall() public method

public dropBall ( ) : void
return void

hitByBall() public method

public hitByBall ( Ball ball ) : void
ball Ball
return void

hitRumble() public method

public hitRumble ( Ball ball ) : void
ball Ball
return void

onCollide() public method

public onCollide ( Ball ball ) : void
ball Ball
return void

onHurtFallCallback() public method

public onHurtFallCallback ( int frameIndex ) : void
frameIndex int
return void

onHurtRecoverCompleteCallback() public method

public onHurtRecoverCompleteCallback ( int frameIndex ) : void
frameIndex int
return void

onParryReturn() public method

public onParryReturn ( int frameIndex ) : void
frameIndex int
return void

onThrowCallback() public method

public onThrowCallback ( int frameIndex ) : void
frameIndex int
return void

onThrowCompleteCallback() public method

public onThrowCompleteCallback ( int frameIndex ) : void
frameIndex int
return void

onThrowReturnCompleteCallback() public method

public onThrowReturnCompleteCallback ( int frameIndex ) : void
frameIndex int
return void

panPosition() public method

public panPosition ( float panFactor = 0.25f ) : float
panFactor float
return float

parry() public method

public parry ( ) : void
return void

play() public method

public play ( string animation ) : void
animation string
return void

playHitSound() public method

public playHitSound ( ) : void
return void

postUpdate() public method

public postUpdate ( ) : void
return void

takeBall() public method

public takeBall ( Ball ball ) : void
ball Ball
return void

updateAnimation() public method

public updateAnimation ( ) : void
return void

updateHeading() public method

public updateHeading ( ) : void
return void

updatePhysics() public method

public updatePhysics ( ) : void
return void

Property Details

courtPosition public property

public CourtPosition courtPosition
return CourtPosition

playerIndex public property

public PlayerIndex playerIndex
return PlayerIndex

shadow public property

public PlayerShadow,Dodgeball.Game shadow
return PlayerShadow

team public property

public Team team
return Team