Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/trunk/src/util/multiplayer_team_deathmatch.cc @ 7036

Last change on this file since 7036 was 7035, checked in by patrick, 19 years ago

trunk: game rules loading problems

File size: 1.6 KB
Line 
1/*
2   orxonox - the future of 3D-vertical-scrollers
3
4   Copyright (C) 2004 orx
5
6   This program is free software; you can redistribute it and/or modify
7   it under the terms of the GNU General Public License as published by
8   the Free Software Foundation; either version 2, or (at your option)
9   any later version.
10
11### File Specific:
12   main-programmer: Patrick Boenzli
13*/
14
15#define DEBUG_MODULE_GAME_RULES
16
17#include "multiplayer_team_deathmatch.h"
18
19#include "load_param.h"
20#include "factory.h"
21
22
23using namespace std;
24
25
26CREATE_FACTORY(MultiplayerTeamDeathmatch, CL_MULTIPLAYER_TEAM_DEATHMATCH);
27
28
29/**
30 * constructor
31 */
32MultiplayerTeamDeathmatch::MultiplayerTeamDeathmatch(const TiXmlElement* root)
33  : GameRules(root)
34{
35  this->setClassID(CL_MULTIPLAYER_TEAM_DEATHMATCH, "MultiplayerTeamDeathmatch");
36
37  if( root != NULL)
38    this->loadParams(root);
39}
40
41/**
42 * decontsructor
43 */
44MultiplayerTeamDeathmatch::~MultiplayerTeamDeathmatch()
45{}
46
47
48
49void 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)
60{}
61
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 TracBrowser for help on using the repository browser.