Messy code

OmniStudent
Member
 
Posts: 261
Joined: Sat Nov 03, 2012 06:40

Messy code

by OmniStudent » Sun Nov 25, 2012 07:47

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.
 

Return to Minetest Engine

Who is online

Users browsing this forum: No registered users and 1 guest

cron