fix and bind EnoughCreditsToJoin
This commit is contained in:
@@ -2088,6 +2088,7 @@ public:
|
|||||||
DEFINE_METHOD( GetCoins, m_iCoins )
|
DEFINE_METHOD( GetCoins, m_iCoins )
|
||||||
DEFINE_METHOD( IsSideJoined, m_bSideIsJoined[Enum::Check<PlayerNumber>(L, 1)] )
|
DEFINE_METHOD( IsSideJoined, m_bSideIsJoined[Enum::Check<PlayerNumber>(L, 1)] )
|
||||||
DEFINE_METHOD( GetCoinsNeededToJoin, GetCoinsNeededToJoin() )
|
DEFINE_METHOD( GetCoinsNeededToJoin, GetCoinsNeededToJoin() )
|
||||||
|
DEFINE_METHOD( EnoughCreditsToJoin, EnoughCreditsToJoin() )
|
||||||
DEFINE_METHOD( PlayersCanJoin, PlayersCanJoin() )
|
DEFINE_METHOD( PlayersCanJoin, PlayersCanJoin() )
|
||||||
DEFINE_METHOD( GetNumSidesJoined, GetNumSidesJoined() )
|
DEFINE_METHOD( GetNumSidesJoined, GetNumSidesJoined() )
|
||||||
DEFINE_METHOD( GetCoinMode, GetCoinMode() )
|
DEFINE_METHOD( GetCoinMode, GetCoinMode() )
|
||||||
@@ -2251,6 +2252,7 @@ public:
|
|||||||
ADD_METHOD( GetCoins );
|
ADD_METHOD( GetCoins );
|
||||||
ADD_METHOD( IsSideJoined );
|
ADD_METHOD( IsSideJoined );
|
||||||
ADD_METHOD( GetCoinsNeededToJoin );
|
ADD_METHOD( GetCoinsNeededToJoin );
|
||||||
|
ADD_METHOD( EnoughCreditsToJoin );
|
||||||
ADD_METHOD( PlayersCanJoin );
|
ADD_METHOD( PlayersCanJoin );
|
||||||
ADD_METHOD( GetNumSidesJoined );
|
ADD_METHOD( GetNumSidesJoined );
|
||||||
ADD_METHOD( GetCoinMode );
|
ADD_METHOD( GetCoinMode );
|
||||||
|
|||||||
@@ -85,7 +85,7 @@ public:
|
|||||||
|
|
||||||
bool PlayersCanJoin() const; // true if it's not too late for a player to join
|
bool PlayersCanJoin() const; // true if it's not too late for a player to join
|
||||||
int GetCoinsNeededToJoin() const;
|
int GetCoinsNeededToJoin() const;
|
||||||
bool EnoughCreditsToJoin() const { return GetCoinsNeededToJoin() <= 0; }
|
bool EnoughCreditsToJoin() const { return m_iCoins >= GetCoinsNeededToJoin(); }
|
||||||
int GetNumSidesJoined() const;
|
int GetNumSidesJoined() const;
|
||||||
|
|
||||||
const Game* GetCurrentGame();
|
const Game* GetCurrentGame();
|
||||||
|
|||||||
Reference in New Issue
Block a user