Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jun 9, 2009, 2:42:19 PM (15 years ago)
Author:
rgrieder
Message:

Using smart pointers in Game to manage the little tree. It's merely a test case.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/pch/src/core/Game.h

    r3084 r3124  
    4141#include <map>
    4242#include <vector>
     43#include <boost/shared_ptr.hpp>
    4344#include "OrxonoxClass.h"
    4445
     
    106107
    107108        std::vector<GameState*>         activeStates_;
    108         GameStateTreeNode*              rootStateNode_;
    109         GameStateTreeNode*              activeStateNode_;
    110         std::vector<GameStateTreeNode*> requestedStateNodes_;
    111         std::vector<GameStateTreeNode*> allStateNodes_;
     109        boost::shared_ptr<GameStateTreeNode> rootStateNode_;
     110        boost::shared_ptr<GameStateTreeNode> activeStateNode_;
     111        std::vector<boost::shared_ptr<GameStateTreeNode> > requestedStateNodes_;
    112112
    113113        Core*                           core_;
Note: See TracChangeset for help on using the changeset viewer.