Exemplo n.º 1
0
 public Ship()
 {
     myPosition       = new Vector2(500, 500);
     rotationStep     = 30.0f;
     rotationAngle    = 0.0f;
     beamOut          = false;
     shieldsUp        = false;
     engineController = new EngineController(this);
     beamController   = new BeamController(this, beamTexture);
 }
Exemplo n.º 2
0
 //This one is to choose texture on the construction phase
 public Ship(int posX, int posY, bool shields, string texture, bool visible, Sector myLocation)
 {
     System.Console.WriteLine("DEBUG: Ship constructor with texture option accessed with texture name " + texture);
     myPosition       = new Vector2(posX, posY);
     rotationStep     = 30.0f;
     rotationAngle    = 0.0f;
     beamOut          = false;
     shieldsUp        = shields;
     engineController = new EngineController(this);
     textureName      = texture;
     this.visible     = visible;
     this.myLocation  = myLocation;
     beamController   = new BeamController(this, beamTexture);
 }