C# Class PlatformerPOC.Domain.Player

Inheritance: BaseGameObject
Exibir arquivo Open project: bramdemoor/MonoGame-PlatformerPOC Class Usage Examples

Public Properties

Property Type Description
spriteSheetInstance PlatformerPOC.Helpers.CustomSpriteSheetInstance

Private Properties

Property Type Description
ApplyInput void
Die void
HorizontalMovement void
Jump void
ReverseMidAir void
UpdateBoundingBox void
VerticalMovement void

Public Methods

Method Description
DoDamage ( int damage ) : void
HandleInput ( IPlayerControlState playerInputState ) : void
Player ( PlatformGame game, string name, CustomSpriteSheetDefinition spriteSheetDefinition ) : Microsoft.Xna.Framework
Spawn ( Vector2 spawnPoint ) : void
SwitchTeam ( Team newTeam ) : void
Update ( GameTime gameTime ) : void

Private Methods

Method Description
ApplyInput ( ) : void
Die ( ) : void
HorizontalMovement ( ) : void
Jump ( ) : void
ReverseMidAir ( ) : void
UpdateBoundingBox ( ) : void
VerticalMovement ( ) : void

Method Details

DoDamage() public method

public DoDamage ( int damage ) : void
damage int
return void

HandleInput() public method

public HandleInput ( IPlayerControlState playerInputState ) : void
playerInputState IPlayerControlState
return void

Player() public method

public Player ( PlatformGame game, string name, CustomSpriteSheetDefinition spriteSheetDefinition ) : Microsoft.Xna.Framework
game PlatformGame
name string
spriteSheetDefinition PlatformerPOC.Helpers.CustomSpriteSheetDefinition
return Microsoft.Xna.Framework

Spawn() public method

public Spawn ( Vector2 spawnPoint ) : void
spawnPoint Microsoft.Xna.Framework.Vector2
return void

SwitchTeam() public method

public SwitchTeam ( Team newTeam ) : void
newTeam Team
return void

Update() public method

public Update ( GameTime gameTime ) : void
gameTime Microsoft.Xna.Framework.GameTime
return void

Property Details

spriteSheetInstance public_oe property

public CustomSpriteSheetInstance,PlatformerPOC.Helpers spriteSheetInstance
return PlatformerPOC.Helpers.CustomSpriteSheetInstance