I had a quick question about tpserver-cpp and rulesets. Is it possible
for me to get a reference to the main ruleset class currently being
used. Reason being I have some data I need access outside of Risk.cpp,
in RiskTurn.cpp and in my Move's, and the data is not easily storable
as an IGObject.
Is getting a reference to the currently running ruleset impossible?
Could I store the data in another more accessible class, say RiskTurn
(which I believe you can get access too via TurnManager), or do I need
to create IGObjects to store the data out in the field?
I appreciate our help,
Ryan 'jphr' Neufeld
---------------------------
visit me at hammerofcode.com
p.s. I may be answering my own question a bit here, but just to let
you know, the data I am storing is fairly turn and order specific; The
data consists of the following:
- std::map<uint32_t,uint32_t> reinforcements -> Used to update
player's objects (to display reinforcements) and to restrain how many
units a player can deploy as reinforcements.
- UGraph graph -> indicates connectivity between planets, used to
restrict movement orders to adjacent destinations._______________________________________________
tp-devel mailing list
[email protected]
http://www.thousandparsec.net/tp/mailman.php/listinfo/tp-devel