You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
44 lines
953 B
44 lines
953 B
|
6 years ago
|
/**
|
||
|
|
* @file town.h
|
||
|
|
*
|
||
|
|
* Interface of functionality for rendering the town, towners and calling other render routines.
|
||
|
|
*/
|
||
|
5 years ago
|
#pragma once
|
||
|
8 years ago
|
|
||
|
5 years ago
|
#include "interfac.h"
|
||
|
4 years ago
|
#include "levels/gendung.h"
|
||
|
5 years ago
|
|
||
|
5 years ago
|
namespace devilution {
|
||
|
6 years ago
|
|
||
|
4 years ago
|
/**
|
||
|
|
* @brief Check if hive can be opened by dropping rune bomb on a tile
|
||
|
|
* @param position The position of the tile
|
||
|
|
* @return True if the bomb would open hive
|
||
|
4 years ago
|
*/
|
||
|
4 years ago
|
bool OpensHive(Point position);
|
||
|
|
|
||
|
|
/**
|
||
|
|
* @brief Check if grave can be opened by dropping cathedral map on a tile
|
||
|
|
* @param position The position of the tile
|
||
|
|
* @return True if the map would open the grave
|
||
|
4 years ago
|
*/
|
||
|
4 years ago
|
bool OpensGrave(Point position);
|
||
|
|
|
||
|
5 years ago
|
/**
|
||
|
|
* @brief Update the map to show the open hive
|
||
|
|
*/
|
||
|
5 years ago
|
void TownOpenHive();
|
||
|
5 years ago
|
|
||
|
4 years ago
|
/**
|
||
|
5 years ago
|
* @brief Update the map to show the open grave
|
||
|
|
*/
|
||
|
5 years ago
|
void TownOpenGrave();
|
||
|
5 years ago
|
|
||
|
|
/**
|
||
|
|
* @brief Initialize town level
|
||
|
|
* @param entry Method of entry
|
||
|
|
*/
|
||
|
5 years ago
|
void CreateTown(lvl_entry entry);
|
||
|
8 years ago
|
|
||
|
5 years ago
|
} // namespace devilution
|