|
@@ -7,9 +7,10 @@
|
7
|
7
|
#include "mainwindow.h"
|
8
|
8
|
#include "ui_mainwindow.h"
|
9
|
9
|
|
10
|
|
-//
|
|
10
|
+// ~English/
|
11
|
11
|
// Constructor for the frog class
|
12
|
|
-//
|
|
12
|
+// ~Spanish
|
|
13
|
+// Constructor de la clase sapo
|
13
|
14
|
|
14
|
15
|
frog::frog(QWidget *parent) : QWidget(parent) {
|
15
|
16
|
|
|
@@ -19,7 +20,9 @@ frog::frog(QWidget *parent) : QWidget(parent) {
|
19
|
20
|
myTimer= new QTimer(this);
|
20
|
21
|
flag = xFlag = false;
|
21
|
22
|
|
|
23
|
+ // ~English
|
22
|
24
|
// These are the x positions of the background?
|
|
25
|
+
|
23
|
26
|
temp = 580;
|
24
|
27
|
temp2 = 0;
|
25
|
28
|
|
|
@@ -170,8 +173,12 @@ void frog::animate(){
|
170
|
173
|
float xEnd = 0;
|
171
|
174
|
|
172
|
175
|
|
|
176
|
+ // ~English
|
173
|
177
|
// use the functions implemented by the programmer to
|
174
|
178
|
// compute the x-intercept.
|
|
179
|
+ // ~Spanish
|
|
180
|
+ // use las funciones implementadas por el programador para
|
|
181
|
+ // computar el valor que intercepta la x
|
175
|
182
|
|
176
|
183
|
interX1 = QuadraticMinus(A,B,C);
|
177
|
184
|
interX2 = QuadraticPlus(A,B,C);
|