Page 1 of 1

Messy code

PostPosted: Sun Nov 25, 2012 07:47
by OmniStudent
Why does the client object need an irrlicht device sent to it?

I'm trying to build a command line "bot" program that is run from another computer (no reason for the server to do calculations for AI) - the idea is to have NPCs in the game ran from a second computer.

During this project, I noticed that client.cpp, which should be concerned solely with gathering and sending data, takes an irrlicht device as an argument in its instantiation.

This is not very tidy - it should be possible to change the graphics code or the client code without having to modify other unrelated code.