simplemap_obst.cpp
Go to the documentation of this file.
00001 #include "simplemap.h"
00002 
00003 namespace PPU {
00004         
00005         bool Map::isCellObst(const Viewport& cbb) const {
00006                 for (unsigned int i = 0; i < size(); i++) {
00007                         const Segment& s = at(i);       
00008                         if(s.obstType != ObstSolid) continue;
00009                         
00010                         if(cbb.crossesSegment(s.p[0], s.p[1]))
00011                                 return true;
00012                 }
00013                 return false;
00014         }
00015         
00016         
00017 }


csm
Author(s): Andrea Censi
autogenerated on Mon Jan 16 2017 03:48:29