IACtrl.h 617 B

123456789101112131415161718192021222324252627282930313233
  1. #ifndef IACTRL_H
  2. #define IACTRL_H
  3. #include <iostream>
  4. #include <vector>
  5. #include "Controler.h"
  6. #include "../Persos/Persos_Gest.h"
  7. #define NO_FOCUS 65535
  8. class IACtrl : public Controler
  9. {
  10. /// Fonctions
  11. public:
  12. IACtrl(Persos_Gest* persosGest, bool allie = false);
  13. virtual ~IACtrl();
  14. virtual void update() = 0;
  15. void setPersoMoi(Perso* moi);
  16. protected:
  17. Uint16 focusProche(bool allie); // Retourne l'ID du perso focalisé
  18. /// Attributs
  19. protected:
  20. Perso* m_moi;
  21. Persos_Gest* m_persosGest;
  22. bool m_allie;
  23. };
  24. #endif // IACTRL_H