Skip to content

MAP: Implement collection classes for groups of game elements #516

@tturocy

Description

@tturocy

Overview

We have a number of calls of the form GetXXXs (e.g. GetPlayers(), GetStrategies(), GetChildren()) which are implemented currently as returning a container of (smart) pointers to game elements. This was a very useful step for being able to evolve code towards modern C++ and using STL algorithms, but the allocation and copying is inefficient.

We will now replace these with classes which encapsulate collections of game objects, written for efficient access and iteration.

To do

  • Write custom collection class for GameRep::GetPlayers()
  • Write custom collection class for GameNodeRep::GetChildren()

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions