C# Class cruisin_asu.GameObjects.MovingGameObject

Inheritance: GameObject
Mostrar archivo Open project: travis134/racing-asu

Public Properties

Property Type Description
direction Vector2
futurePosition Vector2
futureRectangle Microsoft.Xna.Framework.Rectangle
moving System.Boolean
speed float

Public Methods

Method Description
LoadContent ( Microsoft.Xna.Framework.Content.ContentManager content ) : void
MovingGameObject ( String texturePath, Vector2 position ) : System
MovingGameObject ( String texturePath, Vector2 position, Vector2 direction ) : System
MovingGameObject ( String texturePath, Vector2 position, Vector2 direction, float speed ) : System
Update ( GameTime gameTime ) : void

Method Details

LoadContent() public method

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

MovingGameObject() public method

public MovingGameObject ( String texturePath, Vector2 position ) : System
texturePath String
position Vector2
return System

MovingGameObject() public method

public MovingGameObject ( String texturePath, Vector2 position, Vector2 direction ) : System
texturePath String
position Vector2
direction Vector2
return System

MovingGameObject() public method

public MovingGameObject ( String texturePath, Vector2 position, Vector2 direction, float speed ) : System
texturePath String
position Vector2
direction Vector2
speed float
return System

Update() public method

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

Property Details

direction public_oe property

public Vector2 direction
return Vector2

futurePosition public_oe property

public Vector2 futurePosition
return Vector2

futureRectangle public_oe property

public Rectangle,Microsoft.Xna.Framework futureRectangle
return Microsoft.Xna.Framework.Rectangle

moving public_oe property

public Boolean,System moving
return System.Boolean

speed public_oe property

public float speed
return float