C# Class SmashBros.Controllers.CursorController

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

Public Properties

Property Type Description
OnCursorClick CursorClick
OnCursorCollision CursorAction
OnCursorSeparation CursorAction

Public Methods

Method Description
CursorController ( ScreenManager screen ) : System
Deactivate ( ) : void
DisableCursor ( int playerIndex ) : void
EnableCursor ( int playerIndex ) : void
Load ( Microsoft.Xna.Framework.Content.ContentManager content ) : void
OnNext ( GameStateManager value ) : void
ResetCursors ( ) : void
SetCursorCollisionCategory ( Category cat = Category.Cat5 ) : void
Unload ( ) : void
Update ( GameTime gameTime ) : void

Private Methods

Method Description
CheckForCursorDeslect ( int playerIndex ) : void
CheckForCursorPress ( int playerIndex ) : void
CheckForPress ( int playerIndex, bool selectKey ) : void
OnCollision ( Fixture cursor, Fixture box, Contact contact ) : bool
OnCursorNavigate ( float directionX, float directionY, int playerIndex, bool newXdirection, bool newYdirection ) : void
OnSeparation ( Fixture cursor, Fixture box ) : void

Method Details

CursorController() public method

public CursorController ( ScreenManager screen ) : System
screen SmashBros.MySystem.ScreenManager
return System

Deactivate() public method

public Deactivate ( ) : void
return void

DisableCursor() public method

public DisableCursor ( int playerIndex ) : void
playerIndex int
return void

EnableCursor() public method

public EnableCursor ( int playerIndex ) : void
playerIndex int
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

ResetCursors() public method

public ResetCursors ( ) : void
return void

SetCursorCollisionCategory() public method

public SetCursorCollisionCategory ( Category cat = Category.Cat5 ) : void
cat Category
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

OnCursorClick public_oe property

public CursorClick OnCursorClick
return CursorClick

OnCursorCollision public_oe property

public CursorAction OnCursorCollision
return CursorAction

OnCursorSeparation public_oe property

public CursorAction OnCursorSeparation
return CursorAction