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.
32 lines
575 B
32 lines
575 B
/** |
|
* @file dead.h |
|
* |
|
* Interface of functions for placing dead monsters. |
|
*/ |
|
#pragma once |
|
|
|
#include <array> |
|
#include <cstdint> |
|
|
|
#include "engine/point.hpp" |
|
#include "engine.h" |
|
|
|
namespace devilution { |
|
|
|
static constexpr unsigned MaxDead = 31; |
|
|
|
struct DeadStruct { |
|
std::array<const byte *, 8> _deadData; |
|
int _deadFrame; |
|
int _deadWidth; |
|
uint8_t _deadtrans; |
|
}; |
|
|
|
extern DeadStruct dead[MaxDead]; |
|
extern int8_t stonendx; |
|
|
|
void InitDead(); |
|
void AddDead(Point tilePosition, int8_t dv, Direction ddir); |
|
void SetDead(); |
|
|
|
} // namespace devilution
|
|
|