public void Initialize( TanksDrop game, TimeSpan spawnTime ) { this.spawnTime = spawnTime; this.Game = game; InitializeCarrier( game ); Initialize( game ); }
/// <summary> /// The main entry point for the application. /// </summary> static void Main(string[] args) { using (TanksDrop game = new TanksDrop()) { game.Run(); } }
public override void Initialize( TanksDrop game ) { Helpers = new List<LazerHelper>(); lastHelper = new LazerHelper( Position, Angle, game, owner ); hasCollided = false; Tanks = null; //lifeTime = 2000; base.Initialize( game ); }
public void InitializeCarrier( TanksDrop game ) { if ( carrier is TankController ) { ( ( TankController )carrier ).Initialize( game ); ( ( TankController )carrier ).LoadTexture( game.Content ); } else if ( carrier is Projectile ) { ( ( Projectile )carrier ).Initialize( game ); } }
public virtual void Initialize( TanksDrop game, TimeSpan gameTime, Tank owner ) { this.owner = owner; Initialize( game, gameTime ); }
public virtual void Initialize( TanksDrop game, TimeSpan gameTime ) { spawnTime = gameTime; Initialize( game ); }
public virtual void Initialize( TanksDrop game ) { this.Game = game; }
public override void Initialize( TanksDrop game, TimeSpan gameTime, Tank owner ) { owner.AppendController( Controller ); Position = owner.Position; ControllerIsTripler = owner.Controller is Tripler; isDead = false; base.Initialize( game, gameTime, owner ); }
public virtual void Initialize( TanksDrop game, Tank Owner ) { this.Owner = Owner; Initialize( game ); }
public virtual void Initialize( TanksDrop game, Tank Owner, TimeSpan spawnTime ) { this.spawnTime = spawnTime; Initialize( game, Owner ); }
/// <summary> /// Initializes the entity. /// </summary> /// <param name="game">The current game the entity exists in.</param> public virtual void Initialize( TanksDrop game ) { ScreenWidth = game.ScreenWidth; ScreenHeight = game.ScreenHeight; Game = game; ID = Game.CurrentID; Game.CurrentID++; }
public LazerHelper( Vector2 Position, float Angle, TanksDrop Game, Tank Owner ) : base(Owner) { this.Position = Position; this.Angle = Angle; Initialize( Game ); LoadContent( Game.Content, Game.ScreenWidth, Game.ScreenHeight ); this.Destroyed = false; this.lifeTime = lifeTime; }
public override void Initialize( TanksDrop game ) { hasExploded = false; base.Initialize( game ); }
public override void Initialize( TanksDrop game, TimeSpan gameTime, Tank owner ) { keyShoot = owner.Keys.KeyShoot; con = new MissileController( owner, this, keyShoot ); owner.Keys.KeyShoot = Keys.None; owner.AppendController( con ); base.Initialize( game, gameTime, owner ); }
public override void Initialize( TanksDrop game ) { originalProjectile.Initialize( game ); nextProjectile = OriginalProjectile; prevPadState = GamePad.GetState( index ); base.Initialize( game ); }