YAPOG
0.0.1
Yet Another Pokemon Online Game
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
DynamicObjectFactory.hxx
Go to the documentation of this file.
1
#ifndef YAPOG_SERVER_DYNAMICOBJECTFACTORY_HXX
2
# define YAPOG_SERVER_DYNAMICOBJECTFACTORY_HXX
3
4
# include "
YAPOG/Game/Factory/ObjectFactory.hpp
"
5
6
# include "
World/Map/IDGenerator.hpp
"
7
8
namespace
yse
9
{
10
template
<
typename
T>
11
inline
T*
DynamicObjectFactory::Create
(
12
const
yap::String
& typeName,
13
const
yap::ID
&
id
)
const
14
{
15
T*
object
=
yap::ObjectFactory::Instance
().
Create
<T> (typeName, id);
16
17
object
->SetWorldID (
IDGenerator::Instance
().GetID ());
18
19
return
object;
20
}
21
}
// namespace yse
22
23
#endif // YAPOG_SERVER_DYNAMICOBJECTFACTORY_HXX
YAPOG.Server
include
World
Map
DynamicObjectFactory.hxx
Generated on Mon Sep 17 2012 22:24:22 for YAPOG by
1.8.1.1