Projektordner für das Team Deutsches Museum (FORUM).
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

avatar.hpp 753B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. //
  2. // avatar.hpp
  3. // emptyExample
  4. //
  5. // Created by Sebastian Holzki on 17.04.19.
  6. //
  7. #pragma once
  8. #include <stdio.h>
  9. #include "ofMain.h"
  10. class Avatar {
  11. public:
  12. Avatar(int playerType);
  13. ~Avatar();
  14. void setup(int playerType);
  15. void update();
  16. void draw();
  17. void setPlayerType();
  18. int getPlayerType();
  19. ofVec2f getPosition();
  20. void setPosition(int x, int y);
  21. void setPosition(ofVec2f position);
  22. void clipToAvatar(Avatar avatar); //A particular avatar can clip its position, depending on the position of another avatar, compared to a beehive-structure)
  23. private:
  24. ofImage icon;
  25. int playerType;
  26. ofVec2f position;
  27. };