1 #ifndef HEADER_MODELLIST_H 2 #define HEADER_MODELLIST_H 3 4 class View; 5 class Landslip; 6 7 #include "Cube.h" 8 9 #include <vector> 10 11 /** 12 * Wrapper around list of models. 13 */ 14 class ModelList { 15 private: 16 const Cube::t_models *m_models; 17 public: 18 ModelList(const Cube::t_models *models); size()19 int size() const { return m_models->size(); } 20 21 void drawOn(View *view) const; 22 bool stoneOn(Landslip *slip) const; 23 bool fallOn(Landslip *slip) const; 24 }; 25 26 #endif 27