Page 1 of 1
Radio from Cities
Posted: Sun Nov 07, 2010 12:15 am
by TieR
Hi,
can cities comunicate via radio?
And if not, wouldn't it be a nice feature?
Thanks
TieR
Posted: Wed Nov 10, 2010 8:25 pm
by Kender
Yes, cities can also use the radio.
Sun Tzu uses this so its cities request help from different nearby units based on both the type of enemy unit nearing as well as the terrain type it is on. They also act as relays to pass on information broadcast by nearby bots to make the message travel further.
Posted: Thu Nov 11, 2010 1:17 am
by tails
How do cities cast radio signals?
To my understanding about cities, only "build" is called and "think" is not called. And "build" can only return an integer, thus unabe to cast radio.
Am I missing anything?
Posted: Thu Nov 11, 2010 7:10 am
by Kender
I had to decompile Sun Tzu since I seem to have lost my sourcefiles, but it seems I simply use
this.radio[x] = y
in my build method.