23#ifndef ULTIMA2_LOGIC_DUNGEON_LOGIC_H
24#define ULTIMA2_LOGIC_DUNGEON_LOGIC_H
26#include "ultima/ultima1/data/map_dungeon.h"
27#include "ultima/ultima1/logic/logic.h"
39 int getDirDeltaX()
const;
40 int getDirDeltaY()
const;
47 bool isBlocked(
int deltaX,
int deltaY)
const;
72 void climbLadderDown();
80 void showNearbyText();
90 int getMonsterDistance(
int maxDistance)
const;
97 void writeMonsterName(
int monsterId);
105 void monsterDead(
int monsterId);
112 void dungeonAttackAt(
int effectNum,
int agility,
int strike,
int x,
int y);
122 void dungeonMonsterAttack(
int deltaX,
int deltaY);
130 bool dungeonCreatureMove(
int x,
int y,
int deltaX,
int deltaY,
131 bool moved[][Data::DUNGEON_WIDTH]);
139 int getMagicWeaponPower();
155 void castSpell(
int spell,
bool showPhrase);
161 bool move(Data::Direction dir)
override;
166 bool attack(Data::Direction dir)
override;
206 void entering()
override;
Definition: dungeon_logic.h:33
void updateCreatures() override
bool move(Data::Direction dir) override
bool attack(Data::Direction dir) override