i6engine  1.0
PhysicsFacade.h
Go to the documentation of this file.
1 /*
2  * i6engine
3  * Copyright (2016) Daniel Bonrath, Michael Baer, All rights reserved.
4  *
5  * This file is part of i6engine; i6engine is free software; you can redistribute it and/or
6  * modify it under the terms of the GNU Lesser General Public
7  * License as published by the Free Software Foundation; either
8  * version 2.1 of the License, or (at your option) any later version.
9  *
10  * This library is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13  * Lesser General Public License for more details.
14  *
15  * You should have received a copy of the GNU Lesser General Public
16  * License along with this library; if not, write to the Free Software
17  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
18  */
19 
25 #ifndef __I6ENGINE_API_PHYSICSFACADE_H__
26 #define __I6ENGINE_API_PHYSICSFACADE_H__
27 
29 
30 #include "boost/function.hpp"
31 
32 namespace i6e {
33 namespace math {
34  class i6eVector;
35 } /* namespace math */
36 namespace api {
37 
43  public:
47  PhysicsFacade() : _notify() {}
48 
53 
58  void setGravity(const math::i6eVector & vec3Gravity) const;
59 
63  void registerNotifyCallback(const boost::function<void(int64_t)> & f);
64 
68  void notifyNewID(int64_t id);
69 
73  void resetSubSystem();
74 
78  void pause() const;
79 
83  void unpause() const;
84 
85  private:
86  boost::function<void(int64_t)> _notify;
87 
91  PhysicsFacade(const PhysicsFacade &) = delete;
92 
96  PhysicsFacade & operator=(const PhysicsFacade &) = delete;
97  };
98 
99 } /* namespace api */
100 } /* namespace i6e */
101 
102 #endif /* __I6ENGINE_API_PHYSICSFACADE_H__ */
103 
#define ISIXE_MODULES_API
~PhysicsFacade()
Destructor.
Definition: PhysicsFacade.h:52
Implements 3-dimensional vectors.
Definition: i6eVector.h:48
Physics specific functions for the game which targets the whole world - not a single object...
Definition: PhysicsFacade.h:42
PhysicsFacade()
Contructor.
Definition: PhysicsFacade.h:47