Pioneer
Loading...
Searching...
No Matches
src
lua
LuaNameGen.h
Go to the documentation of this file.
1
// Copyright © 2008-2023 Pioneer Developers. See AUTHORS.txt for details
2
// Licensed under the terms of the GPL v3. See licenses/GPL-3.txt
3
4
#ifndef _LUANAMEGEN_H
5
#define _LUANAMEGEN_H
6
7
#include "
RefCounted.h
"
8
#include <string>
9
10
class
LuaManager
;
11
class
Random
;
12
class
SystemBody
;
13
14
class
LuaNameGen
{
15
public
:
16
LuaNameGen
(
LuaManager
*manager) :
17
m_luaManager(manager) {}
18
19
std::string
FullName
(
bool
isFemale,
RefCountedPtr<Random>
&rng);
20
std::string
Surname
(
RefCountedPtr<Random>
&rng);
21
std::string
BodyName
(
SystemBody
*body,
RefCountedPtr<Random>
&rng);
22
23
private
:
24
LuaManager
*m_luaManager;
25
};
26
27
#endif
RefCounted.h
LuaManager
Definition
LuaManager.h:9
LuaNameGen
Definition
LuaNameGen.h:14
LuaNameGen::LuaNameGen
LuaNameGen(LuaManager *manager)
Definition
LuaNameGen.h:16
LuaNameGen::BodyName
std::string BodyName(SystemBody *body, RefCountedPtr< Random > &rng)
Definition
LuaNameGen.cpp:67
LuaNameGen::Surname
std::string Surname(RefCountedPtr< Random > &rng)
Definition
LuaNameGen.cpp:51
LuaNameGen::FullName
std::string FullName(bool isFemale, RefCountedPtr< Random > &rng)
Definition
LuaNameGen.cpp:34
Random
Definition
Random.h:27
RefCountedPtr
Definition
RefCounted.h:36
SystemBody
Definition
SystemBody.h:19
Generated by
1.9.7