Debian Codegraph @

src/common/trackdatabase.cpp

raw symbols SCIP
1 // This file is part of Dust Racing 2D.
2 // Copyright (C) 2011 Jussi Lind <[email protected]>
3 //
4 // Dust Racing 2D is free software: you can redistribute it and/or modify
5 // it under the terms of the GNU General Public License as published by
6 // the Free Software Foundation, either version 3 of the License, or
7 // (at your option) any later version.
8 // Dust Racing 2D is distributed in the hope that it will be useful,
9 // but WITHOUT ANY WARRANTY; without even the implied warranty of
10 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 // GNU General Public License for more details.
12 //
13 // You should have received a copy of the GNU General Public License
14 // along with Dust Racing 2D. If not, see <http://www.gnu.org/licenses/>.
15
16 #include "trackdatabase.hpp"
17
18 TrackDataBase::TrackDataBase(QString name, bool isUserTrack)
19 : m_name(name)
20 , m_index(999)
21 , m_isUserTrack(isUserTrack)
22 {
23 }
24
25 TrackDataBase::TrackDataBase(const TrackDataBase & other)
26 : m_name(other.m_name)
27 , m_index(other.m_index)
28 , m_isUserTrack(other.m_isUserTrack)
29 {
30 }
31
32 QString TrackDataBase::name() const
33 {
34 return m_name;
35 }
36
37 bool TrackDataBase::isUserTrack() const
38 {
39 return m_isUserTrack;
40 }
41
42 unsigned int TrackDataBase::index() const
43 {
44 return m_index;
45 }
46
47 void TrackDataBase::setName(QString name)
48 {
49 m_name = name;
50 }
51
52 void TrackDataBase::setUserTrack(bool isUserTrack)
53 {
54 m_isUserTrack = isUserTrack;
55 }
56
57 void TrackDataBase::setIndex(unsigned int index)
58 {
59 m_index = index;
60 }
61
62 TrackDataBase::~TrackDataBase()
63 {
64 }