00001 #include "ext_stl.h" 00002 #include "collidable.h" 00003 00004 class Obstacle:public Collidable { 00005 Vector lastminbb; 00006 Vector lastmaxbb; 00007 bool bbchanged; 00008 void recalculatebb (); 00009 public: 00011 Obstacle (std::string filename, const Matrix &mat) : Collidable (filename, mat) {recalculatebb();} 00013 const Vector &GetMinVector ()const {return lastminbb;} 00015 const Vector &GetMaxVector ()const {return lastmaxbb;} 00016 /* 00017 bool operator== (Vector oth) { 00018 return (pos.p==oth); 00019 } 00020 Vector &GetPos () { 00021 return pos.p; 00022 } 00023 00024 Matrix &GetMat () { 00025 return pos; 00026 void Draw (Surface *par) { 00027 mesh->Draw(par->toWorld(pos)); 00028 }*/ 00029 };