~ubuntu-branches/ubuntu/precise/supertuxkart/precise

« back to all changes in this revision

Viewing changes to src/KartProperties.h

  • Committer: Bazaar Package Importer
  • Author(s): Gonéri Le Bouder, Gonéri Le Bouder, Eddy Petrişor
  • Date: 2006-09-08 22:59:25 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20060908225925-3spug0pnh9ekwlpw
Tags: 0.2-1
[ Gonéri Le Bouder ]
* new upstream release candidate
 + Closes: #388021
 + remove supertuxkart.sh
 + add supertuxkart(|-data).install
 + clean up
 + remove deps on ${shlibs:Depends}, ${misc:Depends} for supertuxkart-data
* fix French comment was tagged de_DE
* fix not-binnmuable-any-depends-all
* fix FTBFS on 64bit arch
 + Closes: #370810

[ Eddy Petrişor ]
* added Romanian translation to desktop file

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
//  $Id: KartProperties.h 499 2004-12-22 07:00:05Z grumbel $
2
 
//
3
 
//  SuperTuxKart - a fun racing game with go-kart
4
 
//  Copyright (C) 2004 Steve Baker <sjbaker1@airmail.net>
5
 
//
6
 
//  This program is free software; you can redistribute it and/or
7
 
//  modify it under the terms of the GNU General Public License
8
 
//  as published by the Free Software Foundation; either version 2
9
 
//  of the License, or (at your option) any later version.
10
 
//
11
 
//  This program is distributed in the hope that it will be useful,
12
 
//  but WITHOUT ANY WARRANTY; without even the implied warranty of
13
 
//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14
 
//  GNU General Public License for more details.
15
 
//
16
 
//  You should have received a copy of the GNU General Public License
17
 
//  along with this program; if not, write to the Free Software
18
 
//  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
19
 
 
20
 
#ifndef HEADER_KARTPROPERTIES_H
21
 
#define HEADER_KARTPROPERTIES_H
22
 
 
23
 
#include <string>
24
 
#include "NoCopy.h"
25
 
 
26
 
class Material;
27
 
class ssgEntity;
28
 
 
29
 
class KartProperties : public NoCopy
30
 
{
31
 
private:
32
 
  Material* icon_material;
33
 
  ssgEntity* model;
34
 
 
35
 
public:
36
 
  /** The human readable Name of the karts driver */
37
 
  std::string name;
38
 
 
39
 
  /** The computer readable-name of the karts driver */
40
 
  std::string ident;
41
 
 
42
 
  /** Filename of the 3d model that is used for things kart */
43
 
  std::string model_file;
44
 
 
45
 
  /** Filename of the icon that represents the kart in the
46
 
      statusbar and the character select screen */
47
 
  std::string icon_file;
48
 
 
49
 
  /** Filename of the image file that contains the shadow for this
50
 
      kart */
51
 
  std::string shadow_file;
52
 
 
53
 
  /** Color the represents the kart in the status bar and on the
54
 
      track-view */
55
 
  float       color[3];
56
 
  
57
 
  /** Physic properties */
58
 
  float max_grip;
59
 
  float corn_f;
60
 
  float corn_r;
61
 
  float mass;
62
 
  float inertia;
63
 
  float turn_speed;
64
 
  float max_wheel_turn;
65
 
  float engine_power;
66
 
  float max_throttle;
67
 
  float air_friction;
68
 
  float system_friction;
69
 
 
70
 
  // ideally this constructor would be deleted
71
 
  KartProperties();
72
 
  KartProperties(const std::string& filename);
73
 
  ~KartProperties();
74
 
  
75
 
  void init_defaults();
76
 
 
77
 
  Material* getIconMaterial() const;
78
 
  ssgEntity* getModel() const;
79
 
};
80
 
 
81
 
#endif
82
 
 
83
 
/* EOF */