YAPOG
0.0.1
Yet Another Pokemon Online Game
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
AnyMapEventAction.hpp
Go to the documentation of this file.
1
#ifndef YAPOG_ANYMAPEVENTACTION_HPP
2
# define YAPOG_ANYMAPEVENTACTION_HPP
3
4
# include <functional>
5
6
# include "
YAPOG/Macros.hpp
"
7
# include "
YAPOG/Game/World/Map/BaseMapEventAction.hpp
"
8
9
namespace
yap
10
{
11
class
MapEventArgs;
12
13
class
YAPOG_LIB
AnyMapEventAction
:
public
BaseMapEventAction
14
{
15
DISALLOW_ASSIGN
(
AnyMapEventAction
);
16
17
public
:
18
19
typedef
std::function<
20
bool (
MapEventActionType
,
MapEventArgs
&)>
CallbackType
;
21
22
explicit
AnyMapEventAction
(
CallbackType
callback);
23
virtual
~
AnyMapEventAction
();
24
27
virtual
AnyMapEventAction
* Clone ()
const
;
29
30
protected
:
31
32
AnyMapEventAction
(
const
AnyMapEventAction
& copy);
33
34
virtual
bool
HandleExecute (
MapEventArgs
& args);
35
36
private
:
37
38
CallbackType
callback_
;
39
};
40
}
// namespace yap
41
42
#endif // YAPOG_ANYMAPEVENTACTION_HPP
YAPOG
include
YAPOG
Game
World
Map
AnyMapEventAction.hpp
Generated on Mon Sep 17 2012 22:24:23 for YAPOG by
1.8.1.1