UGDK
0.4.1
Main Page
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
genericcollisionlogic.h
Go to the documentation of this file.
1
#ifndef PYRAMIDWORKS_COLLISION_GENERICCOLLISIONLOGIC_H_
2
#define PYRAMIDWORKS_COLLISION_GENERICCOLLISIONLOGIC_H_
3
4
#include <
ugdk/portable/tr1.h
>
5
#include FROM_TR1(functional)
6
#include <
pyramidworks/collision/collisionlogic.h
>
7
8
namespace
pyramidworks {
9
namespace
collision {
10
13
class
GenericCollisionLogic
:
public
CollisionLogic
{
14
public
:
15
GenericCollisionLogic
(std::tr1::function<
void
(
void
*)> func)
16
: func_(func) {}
17
~GenericCollisionLogic
() {}
18
20
21
void
Handle
(
void
*data) {
22
func_(data);
23
}
24
25
private
:
26
std::tr1::function<void (void*)> func_;
27
};
28
29
}
// namespace collision
30
}
// namespace pyramidworks
31
32
#endif
/* PYRAMIDWORKS_COLLISION_GENERICCOLLISIONLOGIC_H_ */
src
pyramidworks
collision
genericcollisionlogic.h
Generated on Sat Oct 13 2012 02:25:11 for UGDK by
1.8.2