Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/trunk/src/util/network_game_rules.cc @ 8369

Last change on this file since 8369 was 8147, checked in by bensch, 18 years ago

orxonox/trunk: merged the network branche back here
merged with command:
svn merge -r8070:HEAD https://svn.orxonox.net/orxonox/branches/network .
no conflicts

File size: 1.0 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: ...
13   co-programmer: ...
14*/
15
16//#define DEBUG_SPECIAL_MODULE DEBUG_MODULE_
17
18#include "network_game_rules.h"
19
20using namespace std;
21
22
23/**
24 * standard constructor
25 */
26NetworkGameRules::NetworkGameRules ( const TiXmlElement* root )
27  : GameRules( root )
28{
29  this->setClassID( CL_NETWORK_GAME_RULES, "NetworkGameRules");
30}
31
32
33/**
34 * standard deconstructor
35 */
36NetworkGameRules::~NetworkGameRules ()
37{
38}
39
40std::string NetworkGameRules::getPlayableModelFileName( int uesrId, int team, ClassID classId )
41{
42  return "models/ships/reap_#.obj";
43}
44
45ClassID NetworkGameRules::getPlayableClassId( int userId, int team )
46{
47  return CL_SPACE_SHIP;
48}
49
50int NetworkGameRules::getTeamForNewUser( )
51{
52  return 0;
53}
54
Note: See TracBrowser for help on using the repository browser.