Panda3D

physxControllersHit.h
Go to the documentation of this file.
1 /**
2 * PANDA 3D SOFTWARE
3 * Copyright (c) Carnegie Mellon University. All rights reserved.
4 *
5 * All use of this software is subject to the terms of the revised BSD
6 * license. You should have received a copy of this license along
7 * with this source code in a file named "LICENSE."
8 *
9 * @file physxControllersHit.h
10 * @author enn0x
11 * @date 2012-11-28
12 */
13
14 #ifndef PHYSXCONTROLLERSHIT
15 #define PHYSXCONTROLLERSHIT
16
17 #include "pandabase.h"
18 #include "callbackData.h"
19 #include "callbackObject.h"
20
21 #include "physx_includes.h"
22
23 class PhysxController;
24
25 /**
26 *
27 */
28 class EXPCL_PANDAPHYSX PhysxControllersHit : public CallbackData {
29
30 PUBLISHED:
31 INLINE PhysxControllersHit(const NxControllersHit &hit);
32
33 INLINE PhysxController *get_controller() const;
34 INLINE PhysxController *get_other() const;
35
36 private:
37 const NxControllersHit &_hit;
38
39 public:
40 static TypeHandle get_class_type() {
41 return _type_handle;
42 }
43 static void init_type() {
44 CallbackData::init_type();
45 register_type(_type_handle, "PhysxControllersHit",
46 CallbackData::get_class_type());
47 }
48 virtual TypeHandle get_type() const {
49 return get_class_type();
50 }
51 virtual TypeHandle force_init_type() {
52 init_type();
53 return get_class_type();
54 }
55
56 private:
57 static TypeHandle _type_handle;
58 };
59
60 #include "physxControllersHit.I"
61
62 #endif // PHYSXCONTROLLERSHIT
callbackData.h
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
callbackObject.h
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
CallbackData
This is a generic data block that is passed along to a CallbackObject when a callback is made.
Definition: callbackData.h:29
PhysxController
Abstract base class for character controllers.
Definition: physxController.h:30
PhysxControllersHit
Definition: physxControllersHit.h:28
TypeHandle
TypeHandle is the identifier used to differentiate C++ class types.
Definition: typeHandle.h:81
pandabase.h
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
physxControllersHit.I
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
physx_includes.h
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
register_type
void register_type(TypeHandle &type_handle, const std::string &name)
This inline function is just a convenient way to call TypeRegistry::register_type(),...
Definition: register_type.I:22