Used ClangFormat style guide I'm happy with.
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2019-11-28 12:55:22 +01:00
parent 3b685ae782
commit a8730d983f
91 changed files with 946 additions and 1121 deletions

View File

@@ -4,10 +4,11 @@
#include <unordered_map>
#include <vector>
namespace CreatureLib::Library{
namespace CreatureLib::Library {
class TypeLibrary {
std::unordered_map<std::string, uint8_t > _types;
std::unordered_map<std::string, uint8_t> _types;
std::vector<std::vector<float>> _effectiveness;
public:
uint8_t GetTypeId(const std::string& s) const;
float GetSingleEffectiveness(uint8_t attacking, uint8_t defensive) const;
@@ -18,5 +19,4 @@ namespace CreatureLib::Library{
};
}
#endif //CREATURELIB_TYPELIBRARY_HPP
#endif // CREATURELIB_TYPELIBRARY_HPP