C# Class PGCGame.Drone

Inheritance: PGCGame.Ships.Allies.BaseAllyShip
Show file Open project: GreatMindsRobotics/PGCGame

Public Properties

Property Type Description
BadStates System.Collections.ObjectModel.ReadOnlyCollection
DeployKey Keys

Public Methods

Method Description
DrawNonAuto ( ) : void
Drone ( Texture2D texture, Vector2 location, SpriteBatch spriteBatch, FighterCarrier parent ) : System
Shoot ( ) : void
Update ( GameTime gameTime ) : void

Private Methods

Method Description
Buttons_XButtonPressed ( object sender, EventArgs e ) : void
Drone ( ) : System
OtherDroneDetects ( ) : bool
isEnemyDetected ( ) : bool

Computes the distance to the nearest enemy.

parent_TierChanged ( object sender, EventArgs e ) : void

Method Details

DrawNonAuto() public method

public DrawNonAuto ( ) : void
return void

Drone() public method

public Drone ( Texture2D texture, Vector2 location, SpriteBatch spriteBatch, FighterCarrier parent ) : System
texture Texture2D
location Vector2
spriteBatch Microsoft.Xna.Framework.Graphics.SpriteBatch
parent FighterCarrier
return System

Shoot() public method

public Shoot ( ) : void
return void

Update() public method

public Update ( GameTime gameTime ) : void
gameTime GameTime
return void

Property Details

BadStates public static property

public static System.Collections.ObjectModel.ReadOnlyCollection BadStates
return System.Collections.ObjectModel.ReadOnlyCollection

DeployKey public static property

public static Keys DeployKey
return Keys