Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changes between Version 2 and Version 3 of code/doc/Network


Ignore:
Timestamp:
Sep 13, 2008, 1:21:30 PM (16 years ago)
Author:
scheusso
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • code/doc/Network

    v2 v3  
    11= Network =
    22
    3 === Overview ===
     3== Overview ==
    44The image below displays the basic concept of the Network Engine:
    55
     
    1313The server and client components manage all the other network components. They call all necessary functions every network tick (not exactly the same as a game tick).
    1414
    15 === Components ===
     15== Components ==
    1616This is a description of the important network components and/or classes:
    1717
     
    2323|| [wiki:network/Synchronisable Synchronisable] || Interface class for all network objects, that need synchronisation || Synchronisable ||
    2424
    25 === External API ===
     25== External API ==
     26=== Synchronisable ===
     27The most important part of the Network API is the Synchronisable Class (see also [wiki:network/Synchronisable Synchronisable]):
     28 * This class provides the functionality for objects to get synchronised over the network:
     29   * registerVar(): this function registers a variable (in the Network Engine) that needs synchronisation
     30   * create
     31 * Every class that needs synchronisation must fullfill some dependencies:
     32   * It must (public) inherit from Synchronisable
     33   * It must have a default constructor
     34   * All steps in object creation that need data (from the levelfile or the network) must be in the create() function
     35   * It must implement the following functions:
     36     * registerAllVariables: register all variables (currently only basic types and strings) to the network engine by calling either [wiki:network/registerdata REGISTERDATA] or [wiki:network/registerstring REGISTERSTRING]
     37     * create: (as described above)
     38=== Host ===