本文整理汇总了C++中Landscape::getDungeon方法的典型用法代码示例。如果您正苦于以下问题:C++ Landscape::getDungeon方法的具体用法?C++ Landscape::getDungeon怎么用?C++ Landscape::getDungeon使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Landscape
的用法示例。
在下文中一共展示了Landscape::getDungeon方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: Landscape
testPassagesFactory::testPassagesFactory(void)
{
Landscape ls = Landscape();
Map mapToTest = ls.getDungeon(0).getMap();
RoomsFactory rF = RoomsFactory();
rF.create(ls,0);
Room startRoom = ls.getRoom(0,0);
//Room endRoom = ls.getRoom(0,1);
std::cout << "Nearest wall to 0,25(L) on room 0 is " << (startRoom.decideNearestWall(0,25)).c_str() << "\n";
std::cout << "Nearest wall to 50,25(R) on room 0 is " << (startRoom.decideNearestWall(50,25)).c_str() << "\n";
std::cout << "Nearest wall to 25,0(T) on room 0 is " << (startRoom.decideNearestWall(25,0)).c_str() << "\n";
std::cout << "Nearest wall to 25,50(B) on room 0 is " << (startRoom.decideNearestWall(25,50)).c_str() << "\n";
ls.getDungeon(0).getMap().printMap();
std::cout << "Finished testPassagesFactory test " << std::endl;
}