C# Class ProjectCow.Tank

Enemy that shoots missles at you
Inheritance: LiftObject
Afficher le fichier Open project: csce3513/Team12 Class Usage Examples

Private Properties

Свойство Type Description
RandomlyShoot void

Méthodes publiques

Méthode 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

Méthode Description
RandomlyShoot ( System.TimeSpan elapsedTime ) : void

Method Details

Draw() public méthode

public Draw ( SpriteBatch spriteBatch ) : void
spriteBatch Microsoft.Xna.Framework.Graphics.SpriteBatch
Résultat void

Lift() public méthode

public Lift ( Vector2 spaceshipCenter, float pullAcceleration, Vector2 beamPosition, int beamWidth ) : void
spaceshipCenter Vector2
pullAcceleration float
beamPosition Vector2
beamWidth int
Résultat void

LoadContent() public méthode

public LoadContent ( Microsoft.Xna.Framework.Content.ContentManager content ) : void
content Microsoft.Xna.Framework.Content.ContentManager
Résultat void

Move() public méthode

public Move ( ) : void
Résultat void

RotateGun() public méthode

public RotateGun ( Vector2 spaceshipPosition, int width, int height ) : void
spaceshipPosition Vector2
width int
height int
Résultat void

Tank() public méthode

public Tank ( Vector2 position, GameObjectsManager manager, Random random ) : System
position Vector2
manager GameObjectsManager
random System.Random
Résultat System

Update() public méthode

public Update ( GameTime gameTime ) : void
gameTime Microsoft.Xna.Framework.GameTime
Résultat void