Peoplemon  0.1.0
Peoplemon 3 game source documentation
Public Member Functions | Public Attributes | List of all members
core::map::Spawn Struct Reference

Basic struct representing a spawn in a Map. More...

#include <Spawn.hpp>

Public Member Functions

 Spawn ()
 Creates an empty spawn. More...
 
 Spawn (std::uint16_t id, const bl::tmap::Position &position)
 Creates a spawn with the given parameters. More...
 

Public Attributes

std::uint16_t id
 
bl::tmap::Position position
 

Detailed Description

Basic struct representing a spawn in a Map.

Definition at line 19 of file Spawn.hpp.

Constructor & Destructor Documentation

◆ Spawn() [1/2]

core::map::Spawn::Spawn ( )

Creates an empty spawn.

Definition at line 7 of file Spawn.cpp.

◆ Spawn() [2/2]

core::map::Spawn::Spawn ( std::uint16_t  id,
const bl::tmap::Position &  position 
)

Creates a spawn with the given parameters.

Parameters
idThe id of the spawn
positionThe position to spawn at

Definition at line 10 of file Spawn.cpp.

Member Data Documentation

◆ id

std::uint16_t core::map::Spawn::id

Definition at line 20 of file Spawn.hpp.

◆ position

bl::tmap::Position core::map::Spawn::position

Definition at line 21 of file Spawn.hpp.


The documentation for this struct was generated from the following files: