URL:
<http://gna.org/patch/?1663>
Summary: RNG-refactoring
Project: Battle for Wesnoth
Submitted by: jhinrichs
Submitted on: Montag 03.05.2010 um 23:45
Priority: 5 - Normal
Status: None
Privacy: Public
Assigned to: None
Originator Email:
Open/Closed: Open
Discussion Lock: Any
_______________________________________________________
Details:
Just wanted to provide this: While working on the RNG-topic for the
experimental corner, i started with refactoring the RNG code.
In short I:
- put the code into two classes (simple_rng and combat_rng)
- moved the functions for server rng code into the classes
- removed some unneeded settings for the global random_generator pointer
- added some more comments and renamed a little
I feel this is a somewhat cleaner code and maybe a better base for
redesigning some quick hacks that are still present.
_______________________________________________________
File Attachments:
-------------------------------------------------------
Date: Montag 03.05.2010 um 23:45 Name: rng_refactoring.patch Size: 129kB
By: jhinrichs
<http://gna.org/patch/download.php?file_id=9120>
_______________________________________________________
Reply to this item at:
<http://gna.org/patch/?1663>
_______________________________________________
Nachricht geschickt von/durch Gna!
http://gna.org/
_______________________________________________
Wesnoth-bugs mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-bugs