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

38
src/world/level/Explosion.h Executable file
View File

@@ -0,0 +1,38 @@
#ifndef NET_MINECRAFT_WORLD_LEVEL__Explosion_H__
#define NET_MINECRAFT_WORLD_LEVEL__Explosion_H__
//package net.minecraft.world.level;
#include <set>
#include "TilePos.h"
#include "../../util/Random.h"
class Level;
class Entity;
typedef std::set<TilePos> TilePosSet;
class Explosion
{
public:
Explosion(Level* level, Entity* source, float x, float y, float z, float r);
void explode();
void finalizeExplosion();
float x, y, z;
float r;
TilePosSet toBlow;
bool fire;
Entity* source;
private:
Random random;
Level* level;
};
#endif /*NET_MINECRAFT_WORLD_LEVEL__Explosion_H__*/