Game Development Community

Class to hold RTS resources?

by Dan Chao · in RTS Starter Kit · 01/02/2006 (7:31 pm) · 1 replies

I'm in the midst of adding resources like warcraft3 gold. my question is this: is there a class where I should be storing all this stuff? there doesn't seem to be a place for this and the units seem to be agnostic to everything except for themselves; my units need to know what resources are currently in the bank.

my first thought, is to create a class from SimObject called PlayerMaster or ResourceBank or something and to have every unit point to it. I just want to make sure there's not something already there for me that I can use.

thanks,
dan

#1
01/03/2006 (5:50 pm)
You may just want to check out the World Domination Through Collaboration RTS Resource.

It adds resources, including allowing peons to harvest them, configurable drop off buildings, and quite a bit more, all in script.