arthurmco / familyline-testbed

nice and fun RTS game about the adventures of family in the ancient era. Homebrew engine. Just starting. Shitty graphics are expected
MIT License
6 stars 2 forks source link

Rework the player, team and city dynamics #28

Closed arthurmco closed 4 years ago

arthurmco commented 4 years ago

The current player->team->city dynamics is not good, barely exists.

I need to think of something better...

arthurmco commented 4 years ago

A player controls a city.

One or more cities can form a team

Two teams can be allies (will not attack), neutrals (attack only manually, can trade) or enemies (attack automatically if aggressive, cannot trade).

arthurmco commented 4 years ago

As in c729ee5, we have a new player, team and city dynamics.

City is renamed to Colony, and Team is renamed to Alliance. Also, the game class owns the list of colonies now. This might change in the future, but for now, it is ok.

Detecting if two players are allies or enemies is only a matter of detecting if their colonies are allies or enemies. Not too hard

Since we ended the rework, I will close this issue.