for(x = 0; x < width; x++)
{
squares[y].push_back(boost::shared_ptr<Square>(new Square()));
- if(Dice::Cast(1, 4) == 3) squares[y][x]->SetFloorTag(dungeonPtr->GetInnerWallFloorTag());
- else squares[y][x]->SetFloorTag(dungeonPtr->GetFloorFloorTag());
+ if(Dice::Cast(1, 4) == 3)
+ {
+ squares[y][x]->SetFloorTag(dungeonPtr->GetInnerWallFloorTag());
+ }
+ else
+ {
+ squares[y][x]->SetFloorTag(dungeonPtr->GetFloorFloorTag());
+ }
}
}
#include "stdafx.h"
#include "GameElement.h"
#include "GameWorld.h"
+#include "GameSurface.h"
+#include "GameLogger.h"
namespace Deeangband
{
+ GameWorld *GameElement::GameWorldPtr;
+ GameSurface *GameElement::GameSurfacePtr;
+ GameLogger *GameElement::GameLoggerPtr;
+
GameElement::GameElement(void)
{
this->WipeData();
namespace Deeangband
{
class GameWorld;
+ class GameSurface;
+ class GameLogger;
/*!
* @class GameElement
public:
+ static GameWorld *GameWorldPtr;
+ static GameSurface *GameSurfacePtr;
+ static GameLogger *GameLoggerPtr;
+
/*!
* @brief \92·\82³\82ð\92P\88Ê\82Â\82«\82Åstring\82É\95Ï\8a·\82·\82é\81B
*/
gameSurface = new GameSurfaceSDL(gameWorld);
gameLogger = new GameLogger();
+ GameElement::GameWorldPtr = gameWorld;
+ GameElement::GameSurfacePtr = gameSurface;
+ GameElement::GameLoggerPtr = gameLogger;
+
gameSurface->SetField(gameWorld->GetField(0));
gameSurface->SetSideStatusCreature(gameWorld->GetCreature(0));
this->gameLogger->PutLog("GameEngine\8aJ\8en");
void Square::WipeData(void);
/*!
- * @brief \8f\8a\91®\82·\82é\83t\83\8d\83A\82Ì\83|\83C\83\93\83^\82ð\95Ô\82·\81B
- */
+ * @brief \8f\8a\91®\82·\82é\83t\83\8d\83A\82Ì\83|\83C\83\93\83^\82ð\95Ô\82·\81B
+ */
Field* Square::GetFieldPtr(void);
/*!