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); }
//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); }