Colobot
system_macosx.h
Go to the documentation of this file.
1 /*
2  * This file is part of the Colobot: Gold Edition source code
3  * Copyright (C) 2001-2014, Daniel Roux, EPSITEC SA & TerranovaTeam
4  * http://epsiteс.ch; http://colobot.info; http://github.com/colobot
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 3 of the License, or
9  * (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.
14  * See the 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, see http://gnu.org/licenses
18  */
19 
25 #include "app/system.h"
26 #include "app/system_other.h"
27 
29 {
30 public:
31  virtual void Init() OVERRIDE;
32 
33  virtual std::string GetDataPath() OVERRIDE;
34  virtual std::string GetLangPath() OVERRIDE;
35  virtual std::string GetSaveDir() OVERRIDE;
36 
37  virtual void Usleep(int usec) OVERRIDE;
38 
39 private:
40  std::string m_ASPath;
41  std::string m_dataPath;
42 };
43 
virtual std::string GetDataPath() OVERRIDE
Returns the data path (containing textures, levels, helpfiles, etc)
Definition: system_macosx.cpp:93
virtual void Usleep(int usec) OVERRIDE
Sleep for given amount of microseconds.
Definition: system_macosx.cpp:111
Fallback code for other systems.
Definition: system_other.h:42
System functions: time stamps, info dialogs, etc.
virtual std::string GetLangPath() OVERRIDE
Returns the translations path.
Definition: system_macosx.cpp:98
virtual std::string GetSaveDir() OVERRIDE
Returns the save dir location.
Definition: system_macosx.cpp:103
Definition: system_macosx.h:28
virtual void Init() OVERRIDE
Performs platform-specific initialization.
Definition: system_macosx.cpp:68