Split up the graphtool files

This commit is contained in:
2017-04-14 15:43:07 -04:00
parent e57441f6a0
commit c2ce2a2cd1
76 changed files with 1334 additions and 1279 deletions

28
src/utility.hpp Normal file
View File

@@ -0,0 +1,28 @@
//
// utility.hpp
// BoE
//
// Created by Celtic Minstrel on 17-04-14.
//
//
#ifndef BoE_UTILITY_HPP
#define BoE_UTILITY_HPP
#include <string>
#include <functional>
#include "location.hpp"
short can_see(location p1,location p2,std::function<short(short,short)> get_obscurity);
std::string get_str(std::string list, short j);
// Case-insensitive string comparison seems to be semi-standard, but with different names.
#if defined(__APPLE__)
#define strnicmp strncasecmp
#elif defined(_MSC_VER)
#define strnicmp _strnicmp
#else
#error Missing strnicmp / strncasecmp
#endif
#endif