epidemic - code help?
Posted: Wed May 25, 2011 3:58 pm
Been stalking these boards for ages.Thinking of contributing - was a software engineer in a former life, my C is a little rusty, and have never helped out on a colaborative/OS project before. Please excuse my noobness, but wondering what was involved?Would like to pick something straight forward to start with, had a read through of the issue tracker and decided not to dive in at the deep end! So racking by brains I came up with an idea - epidemics.First of all, what are peoples thoughts on this? Figured that each city\station could have a tiny chance each day of contracting a random disease.Each period (day\week) etc there is:a chance of that disease being irradicated (this chance should go up in time)an increase in medical supply consumptiona sustained higher price of medical suppliesa chance of the disease spreading to the neighboaring cities\planets\systemsa % of population diemissions availble to ship people away \ medics to infected citiesShould be faily straight forward to implement if i understood how everything fitted together:Epidemic classmethod called every ?day\turn?each city would need a Uint16 containing a disease code (0 being healthy)step through each cityif there is a disease in place kill % popluationincrease chance of catching at adjacent citiesincrease base price of meds....else small random chance of catchingfew questionsIs what i've mentioned fiesable?Is there an alternative nice simple class that i can't break that the devs would prefer me to look atwhats the best method of storing data (e.g illness type and weightings) - fully encapulated or do you use XML etc?is there a day tick\loop that calls things like population changeswill you get really ansie if i go away for a week due to my day job?I wont be offended re comments.