Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #ifndef SPEEDBOID_H
- #define SPEEDBOID_H
- #include "ofAuDApp.h"
- class SpeedBoid {
- protected:
- int vx;
- int vy;
- int posX;
- int posY;
- int size;
- int id;
- ofVec2f positionVec;
- ofVec2f velocityVec;
- public:
- SpeedBoid();
- int getX();
- int getY();
- int getSpeedX();
- int getSpeedY();
- void setPosition(int x, int y);
- void setSpeed(int x, int y);
- void move();
- void draw();
- ofVec2f getVelocityVec() const;
- void setVelocityVec(const ofVec2f &velocity);
- ofVec2f getPositionVec() const;
- void setPositionVec(const ofVec2f &position);
- int getId() const;
- void setId(int pId);
- };
- #endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement