the whole game

This commit is contained in:
2026-03-02 22:04:18 +03:00
parent 816e9060b4
commit f0617a5d22
2069 changed files with 581500 additions and 0 deletions

View File

@@ -0,0 +1,50 @@
#ifndef NET_MINECRAFT_WORLD_ENTITY__MobCategory_H__
#define NET_MINECRAFT_WORLD_ENTITY__MobCategory_H__
#include "EntityTypes.h"
#include "MobCategory.h"
#include "../level/material/Material.h"
const MobCategory MobCategory::monster(
MobTypes::BaseEnemy,
10,
20,
false);
//
const MobCategory MobCategory::creature(
MobTypes::BaseCreature,
10,
15,
true);
//
const MobCategory MobCategory::waterCreature(
MobTypes::BaseWaterCreature,
5,
10,
true);
//
// Init an array with all defined MobCategory'ies
//
const MobCategory* const MobCategory::values[] = {
&MobCategory::monster,
&MobCategory::creature,
&MobCategory::waterCreature
};
/*static*/
void MobCategory::initMobCategories() {
monster.setMaterial(Material::air);
creature.setMaterial(Material::air);
waterCreature.setMaterial(Material::water);
}
const int MobCategory::numValues = sizeof(values) / sizeof(values[0]);
#endif /*NET_MINECRAFT_WORLD_ENTITY__MobCategory_H__*/