C# Class Bug.GameObjects.Background

Inheritance: GameObject
Show file Open project: Projectfights/Fight-insect Class Usage Examples

Public Methods

Method Description
Background ( Microsoft.Xna.Framework.Graphics.Texture2D tex_ ) : Microsoft.Xna.Framework
Draw ( SpriteBatch spriteBatch ) : void
GetBoundingBox ( ) : Rectangle
Update ( GameTime gameTime ) : void

Method Details

Background() public method

public Background ( Microsoft.Xna.Framework.Graphics.Texture2D tex_ ) : Microsoft.Xna.Framework
tex_ Microsoft.Xna.Framework.Graphics.Texture2D
return Microsoft.Xna.Framework

Draw() public method

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

GetBoundingBox() public method

public GetBoundingBox ( ) : Rectangle
return Microsoft.Xna.Framework.Rectangle

Update() public method

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