Closed GoogleCodeExporter closed 9 years ago
Cena can you please delete all the fields and functions in the "PerformanceGraph" class and add the following fields and functions instead of them: Fields: int stagewidth, stageheight; int a1; int a2; int a3; int a4; int finishx; int finishy; Boolean finish = false; Boolean directionUp = false; Boolean sameDirection = false; Color curveColor; List<float> Player1Displacement; List<float> Player2Displacement; List<float> Player1Velocity; List<float> Player2Velocity; List<float> Player1Acceleration; List<float> Player2Acceleration; List<float> OptimumDisplacement = new List<float>(); List<float> OptimumVelocity = new List<float>(); List<float> OptimumAcceleration = new List<float>(); List<String> CommandsList; List<double> TimeSpaces; Game currentGame; double totalTime; int[] chosenTimings; float[] chosendisp1 = new float[9]; float[] chosendisp2 = new float[9]; float[] chosenVelocity1 = new float[9]; float[] chosenVelocity2 = new float[9]; float[] chosenAcceleration1 = new float[9]; float[] chosenAcceleration2 = new float[9]; float[] chosenOptD = new float[9]; float[] chosenOptV = new float[9]; float[] chosenOptA = new float[9]; PerformanceGraph[] disp1 = new PerformanceGraph[8]; PerformanceGraph[] disp2 = new PerformanceGraph[8]; PerformanceGraph[] velo1 = new PerformanceGraph[8]; PerformanceGraph[] velo2 = new PerformanceGraph[8]; PerformanceGraph[] acc1 = new PerformanceGraph[8]; PerformanceGraph[] acc2 = new PerformanceGraph[8]; PerformanceGraph[] optD = new PerformanceGraph[8]; PerformanceGraph[] optV = new PerformanceGraph[8]; PerformanceGraph[] optA = new PerformanceGraph[8]; float maxVelocity; float maxAcceleration; List<int> P1DispGraph = new List<int>(); List<int> P2DispGraph = new List<int>(); List<int> P1VeloGraph = new List<int>(); List<int> P2VeloGraph = new List<int>(); List<int> P1AccGraph = new List<int>(); List<int> P2AccGraph = new List<int>(); double[] xaxis = new double[5]; double[] yaxisDisplacement = new double[5]; double[] yaxisVelocity = new double[5]; double[] yaxisAcceleration = new double[5]; CountDown xDP1; CountDown xDP2; CountDown xVP1; CountDown xVP2; CountDown xAP1; CountDown xAP2; Functions: void Draw(SpriteBatch spriteBatch, GraphicsDevice GraphicsDevice) void Update(SpriteBatch spriteBatch, GraphicsDevice GraphicsDevice) Boolean getFinish() void drawLine(SpriteBatch batch, Texture2D blank,float width, Microsoft.Xna.Framework.Color color, Vector2 point1, Vector2 point2) static List<float> GetPlayerVelocity(List<float> DisplacementList) static List<float> GetPlayerAcceleration(List<float> VelocityList) void drawGraphs(List<float> Player1Displacement, List<float> Player2Displacement, List<String> Commands, List<double> time, Game g1) void choose() void setMaximum() void setDestinations(GraphicsDeviceManager graphics) void setAxis() void drawRange(SpriteBatch spriteBatch, GraphicsDevice GraphicsDevice) void drawAxis(SpriteBatch spriteBatch, GraphicsDevice GraphicsDevice, SpriteFont font, SpriteFont font2) void drawConnectors() void drawDisqualification(SpriteBatch spriteBatch, GraphicsDeviceManager graphics, int timer, Texture2D P1Tex, Texture2D P2Tex) void updateCurve(SpriteBatch spriteBatch, GraphicsDevice GraphicsDevice) void GetOptimum() Boolean LiesInBetween(int value, int start, int end) float getMax(List<float> x) double GetAverageList(List<float> list)
Original issue reported on code.google.com by asamg...@gmail.com on 24 Apr 2012 at 7:04
asamg...@gmail.com
Original comment by asamg...@gmail.com on 25 Apr 2012 at 2:41
Original issue reported on code.google.com by
asamg...@gmail.com
on 24 Apr 2012 at 7:04