C# Class SmashBros.Models.CursorModel

Exibir arquivo Open project: Grutn/TDT4240-X2 Class Usage Examples

Public Properties

Property Type Description
CurrentTarget FarseerPhysics.Dynamics.Body
Cursor Sprite
Navigation SmashBros.Controllers.GamepadController.NavigationKey
OnCollision OnCollisionEventHandler
OnSeparation OnSeparationEventHandler
Pad SmashBros.Controllers.GamepadController

Public Methods

Method Description
CursorModel ( Microsoft.Xna.Framework.Content.ContentManager content, World world, GamepadController pad, SmashBros navigationMethod, OnCollisionEventHandler col, OnSeparationEventHandler sep, bool enabled = false ) : System
SetMinMaxPos ( float minX, float maxX, float minY, float maxY ) : void
SetPosition ( float x, float y ) : void

Method Details

CursorModel() public method

public CursorModel ( Microsoft.Xna.Framework.Content.ContentManager content, World world, GamepadController pad, SmashBros navigationMethod, OnCollisionEventHandler col, OnSeparationEventHandler sep, bool enabled = false ) : System
content Microsoft.Xna.Framework.Content.ContentManager
world FarseerPhysics.Dynamics.World
pad SmashBros.Controllers.GamepadController
navigationMethod SmashBros
col OnCollisionEventHandler
sep OnSeparationEventHandler
enabled bool
return System

SetMinMaxPos() public method

public SetMinMaxPos ( float minX, float maxX, float minY, float maxY ) : void
minX float
maxX float
minY float
maxY float
return void

SetPosition() public method

public SetPosition ( float x, float y ) : void
x float
y float
return void

Property Details

CurrentTarget public_oe property

public Body,FarseerPhysics.Dynamics CurrentTarget
return FarseerPhysics.Dynamics.Body

Cursor public_oe property

public Sprite Cursor
return Sprite

Navigation public_oe property

public SmashBros.Controllers.GamepadController.NavigationKey Navigation
return SmashBros.Controllers.GamepadController.NavigationKey

OnCollision public_oe property

public OnCollisionEventHandler OnCollision
return OnCollisionEventHandler

OnSeparation public_oe property

public OnSeparationEventHandler OnSeparation
return OnSeparationEventHandler

Pad public_oe property

public GamepadController,SmashBros.Controllers Pad
return SmashBros.Controllers.GamepadController