C# Class Gravitation.SpriteObjects.Upgrade

Inheritance: Sprite
Show file Open project: thedamoes/Gravitation

Public Properties

Property Type Description
Visible bool
mposition Vector2
mworld FarseerPhysics.Dynamics.World

Public Methods

Method Description
Draw ( SpriteBatch theSpriteBatch ) : void
GetRandomNumber ( float minimum, float maximum ) : float
LoadContent ( Microsoft.Xna.Framework.Content.ContentManager theContentManager, GraphicsDeviceManager graphics ) : void
Update ( GameTime gameTime, Matrix _view ) : void
Upgrade ( World world, List spawnPoints, List upgradeList, int upgradeTimer ) : System
randomSelect ( Int32>.Dictionary upgradeList ) : String

Private Methods

Method Description
Body_OnCollision ( Fixture fixturea, Fixture fixtureb, Contact contact ) : bool
selectRandomSpawn ( ) : Vector2

Method Details

Draw() public method

public Draw ( SpriteBatch theSpriteBatch ) : void
theSpriteBatch Microsoft.Xna.Framework.Graphics.SpriteBatch
return void

GetRandomNumber() public method

public GetRandomNumber ( float minimum, float maximum ) : float
minimum float
maximum float
return float

LoadContent() public method

public LoadContent ( Microsoft.Xna.Framework.Content.ContentManager theContentManager, GraphicsDeviceManager graphics ) : void
theContentManager Microsoft.Xna.Framework.Content.ContentManager
graphics GraphicsDeviceManager
return void

Update() public method

public Update ( GameTime gameTime, Matrix _view ) : void
gameTime GameTime
_view Matrix
return void

Upgrade() public method

public Upgrade ( World world, List spawnPoints, List upgradeList, int upgradeTimer ) : System
world FarseerPhysics.Dynamics.World
spawnPoints List
upgradeList List
upgradeTimer int
return System

randomSelect() public method

public randomSelect ( Int32>.Dictionary upgradeList ) : String
upgradeList Int32>.Dictionary
return String

Property Details

Visible public property

public bool Visible
return bool

mposition public property

public Vector2 mposition
return Vector2

mworld public property

public World,FarseerPhysics.Dynamics mworld
return FarseerPhysics.Dynamics.World