C# Class ProjectCow.Tank

Enemy that shoots missles at you
Inheritance: LiftObject
Mostra file Open project: csce3513/Team12 Class Usage Examples

Private Properties

Property Type Description
RandomlyShoot void

Public Methods

Method Description
Draw ( SpriteBatch spriteBatch ) : void
Lift ( Vector2 spaceshipCenter, float pullAcceleration, Vector2 beamPosition, int beamWidth ) : void
LoadContent ( Microsoft.Xna.Framework.Content.ContentManager content ) : void
Move ( ) : void
RotateGun ( Vector2 spaceshipPosition, int width, int height ) : void
Tank ( Vector2 position, GameObjectsManager manager, Random random ) : System
Update ( GameTime gameTime ) : void

Private Methods

Method Description
RandomlyShoot ( System.TimeSpan elapsedTime ) : void

Method Details

Draw() public method

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

Lift() public method

public Lift ( Vector2 spaceshipCenter, float pullAcceleration, Vector2 beamPosition, int beamWidth ) : void
spaceshipCenter Vector2
pullAcceleration float
beamPosition Vector2
beamWidth int
return void

LoadContent() public method

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

Move() public method

public Move ( ) : void
return void

RotateGun() public method

public RotateGun ( Vector2 spaceshipPosition, int width, int height ) : void
spaceshipPosition Vector2
width int
height int
return void

Tank() public method

public Tank ( Vector2 position, GameObjectsManager manager, Random random ) : System
position Vector2
manager GameObjectsManager
random System.Random
return System

Update() public method

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