LEL can now do hit detection on squares.
This commit is contained in:
parent
aa149b6574
commit
7f9e200abe
4 changed files with 22 additions and 1 deletions
2
lel.hpp
2
lel.hpp
|
@ -2,6 +2,7 @@
|
|||
#include <string>
|
||||
#include <unordered_map>
|
||||
#include <functional>
|
||||
#include <optional>
|
||||
|
||||
namespace lel {
|
||||
struct Cell {
|
||||
|
@ -39,6 +40,7 @@ namespace lel {
|
|||
void reset();
|
||||
bool parse(std::string input);
|
||||
void finalize();
|
||||
std::optional<std::string> hit(int x, int y);
|
||||
};
|
||||
|
||||
Cell center(int width, int height, Cell &parent);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue