|
duncan
Mom and Dad were wrong!
|
#include <world.h>

Public Member Functions | |
| bool | load (const std::string &) |
| void | reset () |
| void | reset_visible () |
| void | add_visible (net::index_t) |
| void | set_char_pos (net::index_t, size_t, size_t) |
| void | add_char (net::index_t, const std::string &) |
| void | remove_char (net::index_t) |
| void | set_char_name (net::index_t, const std::string &) |
| void | set_follow (net::index_t) |
| const std::string & | char_name (net::index_t) |
| void | draw (NCWindow &) |
| bool | is_vacant (size_t, size_t, net::index_t) |
| size_t | width () |
| size_t | height () |
Store the client's information about the world.
see LICENSE
| void World::add_char | ( | net::index_t | ch, |
| const std::string & | name | ||
| ) |
Add a new character.
| ch | index of the character |
| name | name of the character |
| void World::add_visible | ( | net::index_t | ch | ) |
Add a character to the list of visible characters.
| ch | index of character |
| const std::string & World::char_name | ( | net::index_t | ch | ) |
Get the name of a character.
| ch | index of character |
| void World::draw | ( | NCWindow & | wnd | ) |
Draw the world.
| wnd | window in which to draw the world |
| size_t World::height | ( | ) |
Get the height of the map.
| bool World::is_vacant | ( | size_t | r, |
| size_t | c, | ||
| net::index_t | igind | ||
| ) |
| r | row of tile |
| c | column of tile |
| igind | index of character to ignore |
| bool World::load | ( | const std::string & | str | ) |
Load the map.
| str | filename of map |
| void World::remove_char | ( | net::index_t | ch | ) |
Remove a character.
| ch | index of character |
| void World::reset | ( | ) |
Reset the world.
| void World::reset_visible | ( | ) |
Reset the list of visible characters.
| void World::set_char_pos | ( | net::index_t | ch, |
| size_t | r, | ||
| size_t | c | ||
| ) |
Set the position of a character.
| ch | index of character |
| r | row |
| c | column |
| void World::set_follow | ( | net::index_t | ch | ) |
Set the world view to center on a particular character.
| ch | the character on whom to center the view |
| size_t World::width | ( | ) |
Get the width of the map.
1.7.4