00001 #ifndef HEADER_MODELLIST_H 00002 #define HEADER_MODELLIST_H 00003 00004 class View; 00005 class Landslip; 00006 00007 #include "Cube.h" 00008 00009 #include <vector> 00010 00011 /** 00012 * Wrapper around list of models. 00013 */ 00014 class ModelList { 00015 private: 00016 const Cube::t_models *m_models; 00017 public: 00018 ModelList(const Cube::t_models *models); 00019 int size() const { return m_models->size(); } 00020 00021 void drawOn(View *view) const; 00022 bool stoneOn(Landslip *slip) const; 00023 bool fallOn(Landslip *slip) const; 00024 }; 00025 00026 #endif