C# Class PGCGame.Ships.Allies.BaseAllyShip

Inheritance: Ship
Show file Open project: GreatMindsRobotics/PGCGame Class Usage Examples

Public Properties

Property Type Description
ActiveSecondaryWeapons List
Controller Microsoft.Xna.Framework.Net.NetworkGamer
SecondaryWeaponIndex SecondaryWeaponType
_SecondaryWeaponType SecondaryWeaponType

Protected Properties

Property Type Description
_cost int>.Dictionary
_isPlayerShip bool
_rotateTowardMouse bool
_worldPos Vector2

Public Methods

Method Description
ActiveSecondaryWeapon_Killed ( object sender, EventArgs e ) : void
CreateShip ( ShipStats stats, SpriteBatch sb ) : BaseAllyShip
CreateShip ( ShipStats stats, SpriteBatch sb, bool isAlly ) : BaseAllyShip
CreateShip ( ShipType type, ShipTier tier, SpriteBatch spawnSpriteBatch, System.Boolean isAllyShip ) : BaseAllyShip
CreateShip ( ShipType type, SpriteBatch sb ) : BaseAllyShip
CreateShip ( ShipType type, SpriteBatch sb, bool isAlly ) : BaseAllyShip
DebugControlManager_ShipHeal ( object sender, EventArgs e ) : void
DebugControlManager_ShipSuicide ( object sender, EventArgs e ) : void
ShrinkRayShoot ( ShrinkRay bulletShooter ) : void
Update ( GameTime gt ) : void

Protected Methods

Method Description
BaseAllyShip ( Texture2D texture, Vector2 location, SpriteBatch spriteBatch, bool isAlly ) : System

Private Methods

Method Description
BaseAllyShip ( ) : System

Method Details

ActiveSecondaryWeapon_Killed() public method

public ActiveSecondaryWeapon_Killed ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
return void

BaseAllyShip() protected method

protected BaseAllyShip ( Texture2D texture, Vector2 location, SpriteBatch spriteBatch, bool isAlly ) : System
texture Texture2D
location Vector2
spriteBatch Microsoft.Xna.Framework.Graphics.SpriteBatch
isAlly bool
return System

CreateShip() public static method

public static CreateShip ( ShipStats stats, SpriteBatch sb ) : BaseAllyShip
stats PGCGame.CoreTypes.ShipStats
sb Microsoft.Xna.Framework.Graphics.SpriteBatch
return BaseAllyShip

CreateShip() public static method

public static CreateShip ( ShipStats stats, SpriteBatch sb, bool isAlly ) : BaseAllyShip
stats PGCGame.CoreTypes.ShipStats
sb Microsoft.Xna.Framework.Graphics.SpriteBatch
isAlly bool
return BaseAllyShip

CreateShip() public static method

public static CreateShip ( ShipType type, ShipTier tier, SpriteBatch spawnSpriteBatch, System.Boolean isAllyShip ) : BaseAllyShip
type ShipType
tier ShipTier
spawnSpriteBatch Microsoft.Xna.Framework.Graphics.SpriteBatch
isAllyShip System.Boolean
return BaseAllyShip

CreateShip() public static method

public static CreateShip ( ShipType type, SpriteBatch sb ) : BaseAllyShip
type ShipType
sb Microsoft.Xna.Framework.Graphics.SpriteBatch
return BaseAllyShip

CreateShip() public static method

public static CreateShip ( ShipType type, SpriteBatch sb, bool isAlly ) : BaseAllyShip
type ShipType
sb Microsoft.Xna.Framework.Graphics.SpriteBatch
isAlly bool
return BaseAllyShip

DebugControlManager_ShipHeal() public method

public DebugControlManager_ShipHeal ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
return void

DebugControlManager_ShipSuicide() public method

public DebugControlManager_ShipSuicide ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
return void

ShrinkRayShoot() public method

public ShrinkRayShoot ( ShrinkRay bulletShooter ) : void
bulletShooter ShrinkRay
return void

Update() public method

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

Property Details

ActiveSecondaryWeapons public property

public List ActiveSecondaryWeapons
return List

Controller public property

public NetworkGamer,Microsoft.Xna.Framework.Net Controller
return Microsoft.Xna.Framework.Net.NetworkGamer

SecondaryWeaponIndex public property

public SecondaryWeaponType SecondaryWeaponIndex
return SecondaryWeaponType

_SecondaryWeaponType public property

public SecondaryWeaponType _SecondaryWeaponType
return SecondaryWeaponType

_cost protected static property

protected static Dictionary _cost
return int>.Dictionary

_isPlayerShip protected property

protected bool _isPlayerShip
return bool

_rotateTowardMouse protected property

protected bool _rotateTowardMouse
return bool

_worldPos protected property

protected Vector2 _worldPos
return Vector2