Defensive Structure Experience

Ideas and suggestions for how to improve the Warzone 2100 base game only. Ideas for mods go in Mapping/Modding instead. Read sticky posts first!
stiv
Warzone 2100 Team Member
Warzone 2100 Team Member
Posts: 876
Joined: 18 Jul 2008, 04:41
Location: 45N 86W

Re: Defensive Structure Experience

Post by stiv »

Zarel wrote:...I thought the whole point of an accessor function was that you could add new functionality to it?
No, the point of an accessor function is to like, you know, access stuff.
User avatar
Zarel
Elite
Elite
Posts: 5770
Joined: 03 Jan 2008, 23:35
Location: Minnesota, USA

Re: Defensive Structure Experience

Post by Zarel »

stiv wrote:No, the point of an accessor function is to like, you know, access stuff.
No, you can do that with a global variable or equivalent.

The point of an accessor function is that you can later add other functionality to it.
stiv
Warzone 2100 Team Member
Warzone 2100 Team Member
Posts: 876
Joined: 18 Jul 2008, 04:41
Location: 45N 86W

Re: Defensive Structure Experience

Post by stiv »

Global variables are generally regarded as evil. And unless we are writing in COBOL, I can't see turning the WEAPON_STATS structs into global variables.
User avatar
NoQ
Special
Special
Posts: 6226
Joined: 24 Dec 2009, 11:35
Location: /var/zone

Re: Defensive Structure Experience

Post by NoQ »

I don't actually like this idea, and the reason is simple: i hate turtles ^_^