// constructor level choice one empty constructor is always one public Character() { constructorChoice = ConstructorLevel.one; #region Setting Values | Number: How Many // number is bird. how many birds. this.howManyBirds = 1; directionMoving = MovementDirection.right; // movement speed data field that is part of equation but does not change. // equation is the keyboard statemovement modifier this.movementSpeed = 3; #endregion #region Setting Values | Number: Object // number is object. this.birdObjectRect = new Rectangle[howManyBirds]; this.characterSize = new Vector2(128, 128); this.birdObjectRect[(int)zeroFalseIdea] = new Rectangle((int)zeroFalseIdea, 360, (int)characterSize.X, (int)characterSize.Y); this.birdObject = new Texture2D[howManyBirds]; #endregion #region Setting Values | Number: Truth/Future //number is future this.birdPositionFutureTruth.X = 500; this.birdPositionFutureTruth.Y = 0; // why is their no variable for equations? // answer: it is a miscalculation. Equations must not be numbers. variables help humans use numbers properly. class BirdNumber #endregion }
// complete overload minus texture and rectangle // custom constructors. always constructor level 3 and beyond. // this is constructor level 3. public Character(int newMovementSpeed, Vector2 newBirdPositionFutureTruth, string newMovementDirection) { constructorChoice = ConstructorLevel.three; #region Setting Values | Number: How Many // number is bird. how many birds. howManyBirds = 1; #region Movement Direction Control Statements if (newMovementDirection == "left") { directionMoving = MovementDirection.left; } else if (newMovementDirection == "right") { directionMoving = MovementDirection.right; } else { directionMoving = MovementDirection.right; } #endregion // movement speed data field that is part of equation but does not change. // equation is the keyboard statemovement modifier this.movementSpeed = newMovementSpeed; #endregion #region Setting Values | Number: Object // number is object. birdObjectRect = new Rectangle[howManyBirds]; this.birdObjectRect[(int)zeroFalseIdea] = new Rectangle((int)zeroFalseIdea, 360, (int)characterSize.X, (int)characterSize.Y); this.birdObject = new Texture2D[howManyBirds]; #endregion #region Setting Values | Number: Truth/Future //number is future this.birdPositionFutureTruth = newBirdPositionFutureTruth; // why is their no variable for equations? // answer: it is a miscalculation. Equations must not be numbers. variables help humans use numbers properly. class BirdNumber #endregion }