duncan
Mom and Dad were wrong!
Public Member Functions
server::ServerMap Class Reference

#include <map.h>

Inheritance diagram for server::ServerMap:
Inheritance graph
[legend]
Collaboration diagram for server::ServerMap:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 ServerMap (const std::string &)
bool load (const std::string &)
const std::vector< std::pair
< size_t, size_t > > & 
spawn ()

Detailed Description

Store information about a map, including a list of spawn points.

Author:
Harry Slatyer

see LICENSE


Constructor & Destructor Documentation

ServerMap::ServerMap ( const std::string &  str)

Load the map from a file.

Parameters:
strname of the file
Exceptions:
std::runtime_errorif map cannot be loaded

Member Function Documentation

bool ServerMap::load ( const std::string &  str) [virtual]

Load the map from a file.

Parameters:
strname of the file
Returns:
whether or not the map loaded successfully

Reimplemented from map::Map.

const std::vector< std::pair< size_t, size_t > > & ServerMap::spawn ( )

Get a reference to the list of spawn points.

Returns:
reference to the list of spawn points

The documentation for this class was generated from the following files:
 All Classes Namespaces Functions Variables Typedefs Enumerations