Make all uses of the Steps* in the TrailEntry class use an accessor method.

This makes it simple to switch to something else, such as using a StepsId
instead of a Steps*.
This commit is contained in:
John Bauer
2006-11-10 05:04:09 +00:00
parent 2c14373639
commit 5d2bf93725
7 changed files with 24 additions and 11 deletions
+5 -2
View File
@@ -13,6 +13,7 @@ struct lua_State;
struct TrailEntry
{
public:
TrailEntry():
pSong(NULL),
pSteps(NULL),
@@ -22,7 +23,10 @@ struct TrailEntry
dc(Difficulty_Invalid)
{
}
void GetAttackArray( AttackArray &out ) const;
void GetAttackArray( AttackArray &out ) const;
Steps* GetSteps() const;
void SetSteps(Steps *steps);
bool ContainsTransformOrTurn() const;
Song* pSong;
Steps* pSteps;
@@ -37,7 +41,6 @@ struct TrailEntry
Difficulty dc;
bool operator== ( const TrailEntry &rhs ) const;
bool operator!= ( const TrailEntry &rhs ) const { return !(*this==rhs); }
bool ContainsTransformOrTurn() const;
};
class Trail