Due to the way this function is used it was easiest to also change ObjIndex to return a reference to the object instead of the index. Also added an explicit conversion from Size to Displacement to make one of the uses slightly cleaner to express.
26 lines
531 B
C++
26 lines
531 B
C++
/**
|
|
* @file setmaps.cpp
|
|
*
|
|
* Interface of functionality for the special quest dungeons.
|
|
*/
|
|
#pragma once
|
|
|
|
#include "engine.h"
|
|
#include "engine/point.hpp"
|
|
#include "objects.h"
|
|
|
|
namespace devilution {
|
|
|
|
/**
|
|
* @brief Find an object given a point in map coordinates
|
|
*
|
|
* @param position The map coordinate to test
|
|
* @return A reference to the object
|
|
*/
|
|
ObjectStruct &ObjectAtPosition(Point position);
|
|
void LoadSetMap();
|
|
|
|
/* rdata */
|
|
extern const char *const QuestLevelNames[];
|
|
|
|
} // namespace devilution
|