No, the point of an accessor function is to like, you know, access stuff.Zarel wrote:...I thought the whole point of an accessor function was that you could add new functionality to it?
Defensive Structure Experience
-
stiv
- Warzone 2100 Team Member

- Posts: 876
- Joined: 18 Jul 2008, 04:41
- Location: 45N 86W
Re: Defensive Structure Experience
-
Zarel
- Elite

- Posts: 5770
- Joined: 03 Jan 2008, 23:35
- Location: Minnesota, USA
Re: Defensive Structure Experience
No, you can do that with a global variable or equivalent.stiv wrote:No, the point of an accessor function is to like, you know, access stuff.
The point of an accessor function is that you can later add other functionality to it.
-
stiv
- Warzone 2100 Team Member

- Posts: 876
- Joined: 18 Jul 2008, 04:41
- Location: 45N 86W
Re: Defensive Structure Experience
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.
-
NoQ
- Special

- Posts: 6226
- Joined: 24 Dec 2009, 11:35
- Location: /var/zone
Re: Defensive Structure Experience
I don't actually like this idea, and the reason is simple: i hate turtles ^_^
Maps | Tower Defense | NullBot AI | More NullBot AI | Scavs | More Scavs | Tilesets | Walkthrough | JSCam