@@ -289,7 +289,6 @@ class GameInfosetRep : public GameObject {
289289 Actions GetActions () const { return Actions (this , &m_actions); }
290290 // @}
291291
292- size_t NumMembers () const { return m_members.size (); }
293292 GameNode GetMember (int p_index) const { return m_members.at (p_index - 1 ); }
294293 Members GetMembers () const { return Members (this , &m_members); }
295294
@@ -388,6 +387,8 @@ class GamePlayerRep : public GameObject {
388387 ~GamePlayerRep () override ;
389388
390389public:
390+ using Infosets = ElementCollection<GamePlayer, GameInfosetRep>;
391+
391392 int GetNumber () const { return m_number; }
392393 Game GetGame () const ;
393394
@@ -398,12 +399,10 @@ class GamePlayerRep : public GameObject {
398399
399400 // / @name Information sets
400401 // @{
401- // / Returns the number of information sets at which the player makes a choice
402- size_t NumInfosets () const { return m_infosets.size (); }
403402 // / Returns the p_index'th information set
404- GameInfoset GetInfoset (int p_index) const ;
405- // / Returns the information sets for the players
406- Array<GameInfoset> GetInfosets () const ;
403+ GameInfoset GetInfoset (int p_index) const { return m_infosets. at (p_index - 1 ); }
404+ // / Returns the information sets for the player
405+ Infosets GetInfosets () const { return Infosets ( this , &m_infosets); }
407406
408407 // / @name Strategies
409408 // @{
@@ -685,14 +684,10 @@ class GameRep : public BaseGameRep {
685684 virtual GameInfoset GetInfoset (int iset) const = 0;
686685 // / Returns the set of information sets in the game
687686 virtual Array<GameInfoset> GetInfosets () const = 0;
688- // / Returns an array with the number of information sets per personal player
689- virtual Array<int > NumInfosets () const = 0;
690687 // @}
691688
692689 // / @name Outcomes
693690 // @{
694- // / Returns the number of outcomes defined in the game
695- size_t NumOutcomes () const { return m_outcomes.size (); }
696691 // / Returns the index'th outcome defined in the game
697692 GameOutcome GetOutcome (int index) const { return m_outcomes.at (index - 1 ); }
698693 // / Returns the set of outcomes in the game
0 commit comments