Chris Beck
da4074e882
use boost mersenne twister rng, add boost::random dependency
...
This is a squash of work done in april, see closed github pull
request. #160
2014-11-03 11:24:24 -05:00
Mark de Wever
c119584895
Strip trailing whitespace.
2014-07-13 12:41:43 +02:00
gfgtdf
5a2d187d5a
remove unused variable
2014-07-09 21:30:49 +02:00
gfgtdf
fc28c17c3d
remove unused variable
...
the variable was only used for a log message and it's not worth the
additional code complexity
2014-07-09 21:30:46 +02:00
gfgtdf
459630a67b
remove unused variable.
2014-07-09 17:32:42 +02:00
Chris Beck
4286b13a79
team::build takes a pointer to the game_data obj we want to use
...
This eliminates another use of resources:: in class team
2014-07-06 18:45:30 -04:00
gfgtdf
1a8d3c6fa2
refactor variable_info
...
we now use const correctness to ensure that we sont change teh game
config if we just want to read values.
Also we use a new algorithm that is a little slower when parsing small
variablenames and much faster when parsing long variablenames.
2014-07-01 04:49:49 +02:00
gfgtdf
23b0c5343f
catch invalid variablename exception when using
...
these exceptiosn are not thrown yet in all cases. This patch prepares a
patch taht makes use of it.
2014-06-30 00:45:02 +02:00
gfgtdf
c366acb96e
make different functions for different variable access
...
the const_cast there is an improvement of the previous solution where we
just hided it by using resources::gamedata which is never const.
2014-06-30 00:44:58 +02:00
gfgtdf
ff70a7da83
add variable_info::add_child method
2014-06-30 00:44:54 +02:00
gfgtdf
ac88831e98
add method variable_info::as_scalar_const
2014-06-30 00:44:53 +02:00
gfgtdf
eb9ef2d16e
add variable_info::clear method
...
move code from game_data
the plan is to make variable_info s member private.
2014-06-30 00:44:51 +02:00
gfgtdf
5d3040c0b8
move variable_info to own file
...
and also move game_data::temporarites_ to that file as a static
variable.
This fixes variable_info being dependent on game_data.
2014-06-30 00:44:49 +02:00
gfgtdf
16938d397d
add game_data::get_variable_accesss method.
2014-06-30 00:44:48 +02:00
Chris Beck
b51d6a15d1
rename gamestatus.?pp -> game_data.?pp, b/c of content changes
2014-06-24 13:44:25 -04:00