Pyrogenesis  13997
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
ICmpPlayer.cpp
Go to the documentation of this file.
1 /* Copyright (C) 2011 Wildfire Games.
2  * This file is part of 0 A.D.
3  *
4  * 0 A.D. 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 2 of the License, or
7  * (at your option) any later version.
8  *
9  * 0 A.D. is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12  * GNU General Public License for more details.
13  *
14  * You should have received a copy of the GNU General Public License
15  * along with 0 A.D. If not, see <http://www.gnu.org/licenses/>.
16  */
17 
18 #include "precompiled.h"
19 
20 #include "ICmpPlayer.h"
21 
22 #include "maths/FixedVector3D.h"
25 
26 #include "ps/Overlay.h"
27 
30 
32 {
33 public:
34  DEFAULT_SCRIPT_WRAPPER(PlayerScripted)
35 
36  virtual CColor GetColour()
37  {
38  return m_Script.Call<CColor>("GetColour");
39  }
40 
41  virtual std::wstring GetCiv()
42  {
43  return m_Script.Call<std::wstring>("GetCiv");
44  }
45 
47  {
48  return m_Script.Call<CFixedVector3D>("GetStartingCameraPos");
49  }
50 
52  {
53  return m_Script.Call<CFixedVector3D>("GetStartingCameraRot");
54  }
55 
56  virtual bool HasStartingCamera()
57  {
58  return m_Script.Call<bool>("HasStartingCamera");
59  }
60 };
61 
virtual CFixedVector3D GetStartingCameraPos()
Definition: ICmpPlayer.cpp:46
Definition: Overlay.h:34
#define END_INTERFACE_WRAPPER(iname)
virtual bool HasStartingCamera()
Definition: ICmpPlayer.cpp:56
virtual CFixedVector3D GetStartingCameraRot()
Definition: ICmpPlayer.cpp:51
#define DEFAULT_SCRIPT_WRAPPER(cname)
Definition: Component.h:48
virtual std::wstring GetCiv()
Definition: ICmpPlayer.cpp:41
#define BEGIN_INTERFACE_WRAPPER(iname)
Player data.
Definition: ICmpPlayer.h:31
#define REGISTER_COMPONENT_SCRIPT_WRAPPER(cname)
Definition: Component.h:37