News SF.net Project Frequently Asked Questions Documentation Downloads Mailing Lists How to Contribute

SourceForge.net Logo

Changing the way games are made and played.

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

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

TestGameserverGame
 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.