123456789101112131415161718192021222324252627282930313233343536373839404142 |
- #include "attractor.h"
-
- Attractor::Attractor()
- {
- x = 0;
- y = 0;
- }
-
- //--------------------------------------------------------------------------------------
-
- Attractor::~Attractor()
- {
-
- }
-
- //--------------------------------------------------------------------------------------
-
-
-
- float Attractor::getY() {
- return y;
- }
-
-
- float Attractor::getX() {
- return x;
- }
-
-
- void Attractor::setX(float xNew) {
- x = xNew;
- }
-
- void Attractor::setY(float yNew) {
- y = yNew;
- }
-
- void Attractor::setup(float xSetup, float ySetup) {
- x = xSetup;
- y = ySetup;
- }
|