Main Page Modules Namespaces C++ Classes Compound List File List Index
TNL: TNLTest Namespace Reference

# TNLTest Namespace Reference

## Detailed Description

TNL Graphical Test Application.

The TNLTest application demonstrates some of the more useful features of the Torque Network Library. The application presents a single window, representing an abstract simulation area. Red rectangles are used to represent "buildings" that small squares representing players move over.

On the linux and Win32 platforms, TNLTest uses the wxWindows user interface API. On Mac OSX TNLTest uses the native Cocoa application framework to render.

Each instance of TNLTest can run in one of four modes: as a server, able to host multiple clients; as a client, which searches for and then connects to a server for game data; a client pinging the localhost for connecting to a server on the local machine, and as a combined server and client.

## Data Structures

struct | Position
| Position structure used for positions of objects in the test game. More...
class | Player
| The Player is an example of an object that can move around and update its position to clients in the system. More...
class | Building
| The Building class is an example of a NetObject that is ScopeAlways. More...
class | TestConnection
| TestConnection is the TNLTest connection class. More...
class | TestNetInterface
| TestNetInterface - the NetInterface subclass used in TNLTest. More...
class | TestGame
| The TestGame class manages a TNLTest client or server instance. More...

## Variables

TestGame * | clientGame
| The instance of the client game, if there is a client currently running.
TestGame * | serverGame
| The instance of the server game, if there is a server currently running.

## Variable Documentation

TestGame* TNLTest::clientGame

The instance of the client game, if there is a client currently running.

TestGame* TNLTest::serverGame

The instance of the server game, if there is a server currently running.