Design

From WinBolo

(Difference between revisions)
Jump to: navigation, search
(Files)
(Overview)
Line 3: Line 3:
== Overview ==
== Overview ==
[[Image:Client-overview.png|thumb]]
[[Image:Client-overview.png|thumb]]
-
WinBolo code is split in two sections, a back end and a front end. The back end contained simulation and game logic. It was 100% ANSI C compliant and designed to compile on multiple platforms. (it isn't any more mainly due to C++ style // comments.) The front end contains any platform specific code. The diagram on the right shows an overview of the design.
+
WinBolo code is split in two sections, a back end and a front end.
-
The main interface point to the backend is via three files:
+
The back end contains simulation and game logic. It is designed to be 100% ANSI C compliant and to work on multiple platforms. - Currently is it not 100% complient mainly due to C++ style // comments. The front end contains any platform specific code.
-
* backend.h - Pr
+
 +
The diagram on the right shows an overview of the design. The front end provides the GUI to the users and runs the game. It accesses the backend.
 +
The interface to the backend is via two files:
 +
* backend.h - Provides access to starting, stopping and updating the simulation
 +
* network.h - Provides access to the networking functions.
-
TODO server
+
The backend calls back front end functions.
 +
* frontend.h - Drawing the screen, playing sounds etc
 +
* netclient.h - TCP/IP communication, sending and receiving packets.
 +
 
 +
 
 +
TODO Server
== Files ==
== Files ==

Revision as of 12:05, 1 December 2008

The design is as follows

Overview

WinBolo code is split in two sections, a back end and a front end.

The back end contains simulation and game logic. It is designed to be 100% ANSI C compliant and to work on multiple platforms. - Currently is it not 100% complient mainly due to C++ style // comments. The front end contains any platform specific code.

The diagram on the right shows an overview of the design. The front end provides the GUI to the users and runs the game. It accesses the backend.

The interface to the backend is via two files:

  • backend.h - Provides access to starting, stopping and updating the simulation
  • network.h - Provides access to the networking functions.

The backend calls back front end functions.

  • frontend.h - Drawing the screen, playing sounds etc
  • netclient.h - TCP/IP communication, sending and receiving packets.


TODO Server

Files

For more information on each part of the code see the pages below. These map the folders in the winbolo/src directory.

Personal tools