1 #ifndef __SSPLAYER_CELLMAP__
2 #define __SSPLAYER_CELLMAP__
30 std::map<SsString,SsCell*> CellDic;
41 size_t num = cellMap->cells.size();
42 for (
size_t i = 0 ; i < num ; i++ )
44 CellDic[cellMap->cells[i]->name] = cellMap->cells[i];
47 if (!SSTextureFactory::isExist() )
49 puts(
"SSTextureFactory not created yet." );
53 tex = SSTextureFactory::create();
54 SsString fullpath = filePath + cellmap->
imagePath;
56 if ( !tex->Load( fullpath.c_str() ) )
72 SsCell* findCell(
const SsString& name ){
return CellDic[name]; }
82 std::map<SsString,SsCelMapLinker*> CellMapDic;
83 std::vector<SsCelMapLinker*> CellMapList;
85 typedef std::map<SsString,SsCelMapLinker*>::iterator CellMapDicItr;
95 for ( CellMapDicItr itr = CellMapDic.begin() ; itr != CellMapDic.end() ; itr ++)
103 size_t size(){
return CellMapList.size(); }
105 void setCellMapPath(
const SsString& filepath );
116 return CellMapList[index];