Radio from Cities

Post Reply
TieR
Posts: 1
Joined: Sat Jan 24, 2009 11:21 am

Radio from Cities

Post by TieR »

Hi,
can cities comunicate via radio?
And if not, wouldn't it be a nice feature?
Thanks
TieR
User avatar
Kender
Posts: 18
Joined: Thu Jun 25, 2009 4:50 pm
Contact:

Post 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.
tails
Posts: 191
Joined: Tue Jun 10, 2008 7:51 pm
Location: Tokyo

Post 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?
User avatar
Kender
Posts: 18
Joined: Thu Jun 25, 2009 4:50 pm
Contact:

Post 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.
Post Reply