Commit Graph

53 Commits

Author SHA1 Message Date
Tom Stellard 47b6d5c80d Use a GPtrArray to store teams in leagues
This allows us to have stable Team pointers throughout the game,
so we don't need to recompute pointers from Team IDs every time
the league order changes.
2021-07-27 14:41:40 -04:00
Tom Stellard f928273875 Add first_team and reserve_level tags to team element
The first_team tag can be used to indicate that a team is a 'reserve
team'.  The value for this new tag is the name of the first team
for this reserve team.  The reserve_level is used to indicate if this
is the 2nd, 3rd, 4th, etc. team for the first team. For example:

<team>
  <team_name>Blue</team_name>
</team>
<team>
  <team_name>Blue 2</team_name>
  <first_team>Blue</first_team>
  <reserve_level>2</reserve_level>
</team>
<team>
  <team_name>Blue 3</team_name>
  <first_team>Blue</first_team>
  <reserve_level>3</reserve_level>
</team>
2020-12-24 10:43:39 -08:00
Tom Stellard 5dc2c6ab46 Optimize team_get_fixture()
When searching for a team's next fixture, only search in leagues that the team
is actually in.  This improves performance a lot in countries with many leagues.
I see about a 7x speed up simulating the first 6 weeks of English leagues using
billys_boots 2019/2020 definitions from the forums.
2020-12-24 10:43:39 -08:00
Tom Stellard 863fefd371 Make team_get_fixture() return const pointer 2020-12-24 10:43:39 -08:00
gyboth dd7c288da9 Added won/lost/drawn display in match preview. 2009-02-21 16:43:53 +00:00
gyboth 73d4cc6795 Added joined leagues to defs system (e.g. for US conferences). 2008-11-20 20:20:18 +00:00
gyboth 55c6a7546a "2.0.0" 2006-06-04 17:10:08 +00:00
gyboth 15ad0cbb01 "Job exchange, first buggy draft with lots of debugging output." 2005-12-01 11:50:54 +00:00
gyboth 6f61b20f96 "Minor bugfix in query_cup_begins." 2005-11-26 16:52:51 +00:00
gyboth 54132543c4 "Betting bugfix." 2005-10-31 16:19:14 +00:00
gyboth 3b23bb353f "CPU strategies, first draft." 2005-10-24 20:50:48 +00:00
gyboth fa0b06f39d "Randomise teams option added." 2005-10-20 15:45:00 +00:00
gyboth 52091f9e4a "WC improvements, Netherlands added." 2005-09-22 16:41:07 +00:00
gyboth 63e471da3f "World cup first try." 2005-09-21 17:42:41 +00:00
gyboth 6b4a11c8f1 "Player streaks first draft implemented." 2005-09-18 10:02:10 +00:00
gyboth 08d169daf3 "Player skill system changed." 2005-09-14 21:16:22 +00:00
gyboth 0498ec1f3e "Update script improvements." 2005-09-07 19:33:03 +00:00
gyboth ee104567bd "MemMatches export/import." 2005-08-21 19:58:51 +00:00
gyboth e436801289 Prom_rel improvements. 2005-08-15 13:18:28 +00:00
gyboth 7e4f427be2 "Prom_rel changes." 2005-08-14 19:03:11 +00:00
gyboth 1292db317c "YA first draft." 2005-07-08 09:26:00 +00:00
gyboth e4fa353923 "Preserve order when prom_rel." 2005-06-22 15:07:34 +00:00
gyboth ce6564ef47 "Team definition system." 2005-06-21 13:33:16 +00:00
gyboth 64c34275b8 "Segfixes." 2005-06-17 12:57:05 +00:00
gyboth fed7efad10 "Segfixes." 2005-06-15 19:13:35 +00:00
gyboth 71f16667b2 "Profiling." 2005-06-04 20:22:22 +00:00
gyboth 60e321ec42 "League cup, fixture free round." 2005-05-31 14:42:20 +00:00
gyboth c7f9e08ddd "League results." 2005-05-30 17:50:53 +00:00
gyboth 367feec221 "League layer" 2005-05-24 18:31:07 +00:00
gyboth c4d40f55b6 Yet another cup system change. 2005-05-08 17:56:26 +00:00
gyboth 745977466d Cup structure changes. 2005-05-06 16:35:19 +00:00
gyboth ccd5f173c8 League stats partly done. 2005-04-29 19:48:02 +00:00
gyboth 37f9b5ebdd Tables attached to cup rounds (not the cups themselves). Cups with round robin as last round allowed. 2005-04-22 15:17:39 +00:00
gyboth fd6e42af8e Promotion games, supercups (phew). 2005-04-14 19:07:25 +00:00
gyboth 903288474a Season end. 2005-04-13 13:01:59 +00:00
gyboth 61c771bbc3 Opponent bars. Contract offers. 2005-03-25 20:18:35 +00:00
gyboth afaf931d60 Transfers done. 2005-03-20 20:49:55 +00:00
gyboth 2f7c0bfe36 Transfers, mainly. 2005-03-19 20:04:08 +00:00
gyboth a265c03a8c User events; financial mismanagement. 2005-03-18 22:03:23 +00:00
gyboth 323e24b52b Tables display implemented. Flags added. 2005-03-15 15:10:57 +00:00
gyboth dfe66b5180 Fixture display. 2005-03-14 17:47:27 +00:00
gyboth 5ea95f38e9 Live game development. 2005-03-14 09:29:39 +00:00
gyboth 36b43c895a Live game development. 2005-03-13 21:10:19 +00:00
gyboth 4dd1f7b08b Live game development. 2005-03-13 15:46:15 +00:00
gyboth f8e9156b5f Live game development. 2005-03-11 17:18:51 +00:00
gyboth aace8d7782 Live game development. 2005-03-10 20:59:39 +00:00
gyboth 82f82acec6 Live game development. 2005-03-09 13:10:28 +00:00
gyboth d345416177 Live game development. 2005-03-08 08:25:46 +00:00
gyboth 7e07d74abd Made some progress; removed editor gui. 2005-03-03 12:46:48 +00:00
gyboth 993e7b6ba2 Live game can be tested a bit now. 2005-01-09 20:21:22 +00:00