C# Class SmashBros.Controllers.CharacterController

Inheritance: Controller
Mostrar archivo Open project: Grutn/TDT4240-X2 Class Usage Examples

Public Properties

Property Type Description
currentMove SmashBros.Models.MoveModel
model SmashBros.Models.CharacterModel
navigation Vector2
newXdir bool
newYdir bool
stats SmashBros.Models.CharacterStats
view SmashBros.Views.CharacterView

Public Methods

Method Description
AddPowerUp ( PowerUp powerUp ) : void
CharacterController ( ScreenManager screen, GamepadController pad, Vector2 startPos, int countDown ) : System
Deactivate ( ) : void
HitByExplotion ( int playerIndex, Vector2 pos ) : void
Load ( Microsoft.Xna.Framework.Content.ContentManager content ) : void
OnNext ( GameStateManager value ) : void
RemovePowerUp ( PowerUp powerUp ) : void
Reset ( Vector2 startPos, bool behindMap ) : void
Unload ( ) : void
Update ( GameTime gameTime ) : void

Private Methods

Method Description
Collision ( Fixture chara, Fixture obj, Contact list ) : bool
HitKeyDown ( float directionX, float directionY, float downTimer, int playerIndex ) : void
HitKeyUp ( float downTimer, int playerIndex ) : void
NaturalState ( ) : void
Navigation ( float directionX, float directionY, int playerIndex, bool newX, bool newY ) : void
Seperation ( Fixture geom1, Fixture geom2 ) : void
ShieldKeyDown ( float directionX, float directionY, float downTimer, int playerIndex ) : void
ShieldKeyUp ( float downTimer, int playerIndex ) : void
SuperKeyDown ( float directionX, float directionY, float downTimer, int playerIndex ) : void
SuperKeyUp ( float downTimer, int playerIndex ) : void

Method Details

AddPowerUp() public method

public AddPowerUp ( PowerUp powerUp ) : void
powerUp SmashBros.Models.PowerUp
return void

CharacterController() public method

public CharacterController ( ScreenManager screen, GamepadController pad, Vector2 startPos, int countDown ) : System
screen SmashBros.MySystem.ScreenManager
pad GamepadController
startPos Vector2
countDown int
return System

Deactivate() public method

public Deactivate ( ) : void
return void

HitByExplotion() public method

public HitByExplotion ( int playerIndex, Vector2 pos ) : void
playerIndex int
pos Vector2
return void

Load() public method

public Load ( Microsoft.Xna.Framework.Content.ContentManager content ) : void
content Microsoft.Xna.Framework.Content.ContentManager
return void

OnNext() public method

public OnNext ( GameStateManager value ) : void
value GameStateManager
return void

RemovePowerUp() public method

public RemovePowerUp ( PowerUp powerUp ) : void
powerUp SmashBros.Models.PowerUp
return void

Reset() public method

public Reset ( Vector2 startPos, bool behindMap ) : void
startPos Vector2
behindMap bool
return void

Unload() public method

public Unload ( ) : void
return void

Update() public method

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

Property Details

currentMove public_oe property

The move.move the character is executing.
public MoveModel,SmashBros.Models currentMove
return SmashBros.Models.MoveModel

model public_oe property

The charactermodel... Helloo
public CharacterModel,SmashBros.Models model
return SmashBros.Models.CharacterModel

navigation public_oe property

The current X and Y navigation
public Vector2 navigation
return Vector2

newXdir public_oe property

Whether the navigation has changed in Y direction with more than something.
public bool newXdir
return bool

newYdir public_oe property

Whether the navigation has changed in Y direction with more than something.
public bool newYdir
return bool

stats public_oe property

The stats of the chosen character. STATIC attributes!!
public CharacterStats,SmashBros.Models stats
return SmashBros.Models.CharacterStats

view public_oe property

The characterview... Helloo
public CharacterView,SmashBros.Views view
return SmashBros.Views.CharacterView