Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Feb 5, 2006, 11:26:21 PM (19 years ago)
Author:
patrick
Message:

trunk: game rules loading problems

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/util/multiplayer_team_deathmatch.cc

    r7034 r7035  
    1818
    1919#include "load_param.h"
     20#include "factory.h"
    2021
    2122
     
    2324
    2425
     26CREATE_FACTORY(MultiplayerTeamDeathmatch, CL_MULTIPLAYER_TEAM_DEATHMATCH);
     27
     28
    2529/**
    2630 * constructor
    2731 */
    28 MultiplayerTeamDeathmatch::MultiplayerTeamDeathmatch(const TiXmlElement root)
     32MultiplayerTeamDeathmatch::MultiplayerTeamDeathmatch(const TiXmlElement* root)
    2933  : GameRules(root)
    30 {}
     34{
     35  this->setClassID(CL_MULTIPLAYER_TEAM_DEATHMATCH, "MultiplayerTeamDeathmatch");
     36
     37  if( root != NULL)
     38    this->loadParams(root);
     39}
    3140
    3241/**
     
    3948
    4049void MultiplayerTeamDeathmatch::loadParams(const TiXmlElement* root)
     50{
     51  GameRules::loadParams(root);
     52}
     53
     54
     55/**
     56 * called when the player enters the game
     57 * @param player the spawned player
     58 */
     59void MultiplayerTeamDeathmatch::onPlayerSpawn(Player* player)
    4160{}
    4261
     62
     63/**
     64 * when the player is killed
     65 * @param player the killed player
     66 */
     67void MultiplayerTeamDeathmatch::onPlayerDeath(Player* player)
     68{}
     69
     70
     71/**
     72 * time tick
     73 * @param dt time
     74 */
     75void MultiplayerTeamDeathmatch::tick(float dt)
     76{}
     77
     78
     79/**
     80 * draws the stuff
     81 */
     82void MultiplayerTeamDeathmatch::draw()
     83{}
     84
     85
     86/**
     87 * check the game rules for consistency
     88 */
     89void MultiplayerTeamDeathmatch::checkGameRules()
     90{}
     91
     92
     93
     94
     95
     96
Note: See TracChangeset for help on using the changeset viewer.