예제 #1
0
 public void Initialize( TanksDrop game, TimeSpan spawnTime )
 {
     this.spawnTime = spawnTime;
     this.Game = game;
     InitializeCarrier( game );
     Initialize( game );
 }
예제 #2
0
 /// <summary>
 /// The main entry point for the application.
 /// </summary>
 static void Main(string[] args)
 {
     using (TanksDrop game = new TanksDrop())
     {
         game.Run();
     }
 }
예제 #3
0
 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 );
 }
예제 #4
0
 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 );
     }
 }
예제 #5
0
 public virtual void Initialize( TanksDrop game, TimeSpan gameTime, Tank owner )
 {
     this.owner = owner;
     Initialize( game, gameTime );
 }
예제 #6
0
 public virtual void Initialize( TanksDrop game, TimeSpan gameTime )
 {
     spawnTime = gameTime;
     Initialize( game );
 }
예제 #7
0
 public virtual void Initialize( TanksDrop game )
 {
     this.Game = game;
 }
예제 #8
0
 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 );
 }
예제 #9
0
 public virtual void Initialize( TanksDrop game, Tank Owner )
 {
     this.Owner = Owner;
     Initialize( game );
 }
예제 #10
0
 public virtual void Initialize( TanksDrop game, Tank Owner, TimeSpan spawnTime )
 {
     this.spawnTime = spawnTime;
     Initialize( game, Owner );
 }
예제 #11
0
 /// <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++;
 }
예제 #12
0
 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;
 }
예제 #13
0
 public override void Initialize( TanksDrop game )
 {
     hasExploded = false;
     base.Initialize( game );
 }
예제 #14
0
 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 );
 }
예제 #15
0
 public override void Initialize( TanksDrop game )
 {
     originalProjectile.Initialize( game );
     nextProjectile = OriginalProjectile;
     prevPadState = GamePad.GetState( index );
     base.Initialize( game );
 }