C# Class Asteroids.Classes.Alien

Datei anzeigen Open project: Timvangool/AsteroidsAPO2

Public Properties

Property Type Description
bullets List

Public Methods

Method Description
Alien ( Microsoft.Xna.Framework.Graphics.Texture2D texture, Vector2 position, Vector2 direction, float rotation, float speed, Microsoft.Xna.Framework.Graphics.Texture2D bulletTexture ) : System
Draw ( SpriteBatch spritebatch ) : void
GetBulletList ( ) : List
MoveAround ( GameTime gameTime ) : void
ShootBullet ( GameTime gameTime ) : void
Update ( GameTime gameTime ) : void

Method Details

Alien() public method

public Alien ( Microsoft.Xna.Framework.Graphics.Texture2D texture, Vector2 position, Vector2 direction, float rotation, float speed, Microsoft.Xna.Framework.Graphics.Texture2D bulletTexture ) : System
texture Microsoft.Xna.Framework.Graphics.Texture2D
position Vector2
direction Vector2
rotation float
speed float
bulletTexture Microsoft.Xna.Framework.Graphics.Texture2D
return System

Draw() public method

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

GetBulletList() public method

public GetBulletList ( ) : List
return List

MoveAround() public method

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

ShootBullet() public method

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

Update() public method

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

Property Details

bullets public_oe property

public List bullets
return List