Archived

This topic is now archived and is closed to further replies.

Dreddnafious Maelstrom

interface question

Recommended Posts

Kaalot    122
I apologize if I'm simply asking the original poster's question over again. I'm kinda new to all this myself, so I may not have recognized those words above as being the "same question". :D


Am I cheating if:

I add my own prewritten classes (timer, etc) into the Project?

I include extra header files in [BotName].h?

I add members to the [BotName] class and then reference them from inside Update()?



It seems like we'd be able to write our own classes to use in the project, so Update() doesn't become unwieldy. And if we are, I want to make sure I'm including them and using them in appropriate ("legal") places.

For example, I added a high res timer object to the public members of my bot class. I was going to initialize the timer in the bot constructor, but noticed that is in a "DO NOT EDIT" section of code. So I threw it in Init() instead (I suppose that's what it's there for), but just wanted to make sure I'm not breaking any rules.


Again, I apologize if this is repetitive for some people. I just want to be crystal clear. Thanks!

-K

[edited by - Kaalot on August 5, 2003 1:56:15 PM]

Share this post


Link to post
Share on other sites
Dragon88    246
Also, can I code my own "bot control" function, so that i can gain control of my bot when i wish, I know something like this was brought up a while back, but I can''t find the thread. Being able to do this would be a wonderful debugging tool, but could be abused in the contest if someone''s bot can''t find the other, but the user grabs the controls and points it in the right direction.



(Stolen from Programmer One)
UNIX is an operating system, OS/2 is half an operating system, Windows is a shell, and DOS is a boot partition virus

Share this post


Link to post
Share on other sites
khawk    2904
quote:
Original post by Dragon88
Also, can I code my own "bot control" function, so that i can gain control of my bot when i wish, I know something like this was brought up a while back, but I can''t find the thread. Being able to do this would be a wonderful debugging tool, but could be abused in the contest if someone''s bot can''t find the other, but the user grabs the controls and points it in the right direction.



(Stolen from Programmer One)
UNIX is an operating system, OS/2 is half an operating system, Windows is a shell, and DOS is a boot partition virus


Someone posted keyboard control for debugging your bot in an earlier thread. Just have the forums list all the threads, and I''m sure you can find it. I would not suggest having this code in there when you distribute your bot or for the contest entry, though..

Share this post


Link to post
Share on other sites
d000hg    1199
How about if the .dll loads, on itialisation, some code off the web into memory and runs that. No rules are broken and you can''t tell what the code is! I would advise you sever all connections between your PC and the outside world during heats as well.

Share this post


Link to post
Share on other sites