C# Class Dodgeball.Game.Player

Inheritance: Sprite
Afficher le fichier Open project: schonstal/BLOODBALL Class Usage Examples

Méthodes publiques

Свойство Type Description
courtPosition CourtPosition
playerIndex PlayerIndex
shadow PlayerShadow
team Team

Méthodes publiques

Méthode 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

Méthode Description
forwardOn ( bool isForward ) : string

Method Details

FlingBall() public méthode

public FlingBall ( ) : void
Résultat void

Player() public méthode

public Player ( PlayerIndex playerIndex, Team team, Vector2 submatrix, CourtPosition position ) : System
playerIndex PlayerIndex
team Team
submatrix Vector2
position CourtPosition
Résultat System

Update() public méthode

public Update ( ) : void
Résultat void

addAnimation() public méthode

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

blockBall() public méthode

public blockBall ( Ball ball ) : void
ball Ball
Résultat void

catchBall() public méthode

public catchBall ( Ball ball ) : void
ball Ball
Résultat void

dropBall() public méthode

public dropBall ( ) : void
Résultat void

hitByBall() public méthode

public hitByBall ( Ball ball ) : void
ball Ball
Résultat void

hitRumble() public méthode

public hitRumble ( Ball ball ) : void
ball Ball
Résultat void

onCollide() public méthode

public onCollide ( Ball ball ) : void
ball Ball
Résultat void

onHurtFallCallback() public méthode

public onHurtFallCallback ( int frameIndex ) : void
frameIndex int
Résultat void

onHurtRecoverCompleteCallback() public méthode

public onHurtRecoverCompleteCallback ( int frameIndex ) : void
frameIndex int
Résultat void

onParryReturn() public méthode

public onParryReturn ( int frameIndex ) : void
frameIndex int
Résultat void

onThrowCallback() public méthode

public onThrowCallback ( int frameIndex ) : void
frameIndex int
Résultat void

onThrowCompleteCallback() public méthode

public onThrowCompleteCallback ( int frameIndex ) : void
frameIndex int
Résultat void

onThrowReturnCompleteCallback() public méthode

public onThrowReturnCompleteCallback ( int frameIndex ) : void
frameIndex int
Résultat void

panPosition() public méthode

public panPosition ( float panFactor = 0.25f ) : float
panFactor float
Résultat float

parry() public méthode

public parry ( ) : void
Résultat void

play() public méthode

public play ( string animation ) : void
animation string
Résultat void

playHitSound() public méthode

public playHitSound ( ) : void
Résultat void

postUpdate() public méthode

public postUpdate ( ) : void
Résultat void

takeBall() public méthode

public takeBall ( Ball ball ) : void
ball Ball
Résultat void

updateAnimation() public méthode

public updateAnimation ( ) : void
Résultat void

updateHeading() public méthode

public updateHeading ( ) : void
Résultat void

updatePhysics() public méthode

public updatePhysics ( ) : void
Résultat void

Property Details

courtPosition public_oe property

public CourtPosition courtPosition
Résultat CourtPosition

playerIndex public_oe property

public PlayerIndex playerIndex
Résultat PlayerIndex

shadow public_oe property

public PlayerShadow,Dodgeball.Game shadow
Résultat PlayerShadow

team public_oe property

public Team team
Résultat Team