mirror of
https://gitea.sffempire.ru/Kolyah35/minecraft-pe-0.6.1.git
synced 2026-03-20 06:53:30 +00:00
53 lines
893 B
C++
Executable File
53 lines
893 B
C++
Executable File
#ifndef NINECRAFTAPP_H__
|
|
#define NINECRAFTAPP_H__
|
|
|
|
#include "world/Pos.h"
|
|
#include "App.h"
|
|
#include "client/Minecraft.h"
|
|
#include "world/level/storage/MemoryLevelStorage.h"
|
|
#include <string>
|
|
|
|
|
|
class Level;
|
|
class LocalPlayer;
|
|
class ExternalFileLevelStorageSource;
|
|
|
|
class NinecraftApp: public Minecraft
|
|
{
|
|
public:
|
|
NinecraftApp();
|
|
~NinecraftApp();
|
|
|
|
void init();
|
|
void teardown();
|
|
|
|
void update();
|
|
|
|
virtual bool handleBack(bool isDown);
|
|
|
|
protected:
|
|
void onGraphicsReset();
|
|
|
|
private:
|
|
void initGLStates();
|
|
void restartServer();
|
|
|
|
void updateStats();
|
|
|
|
//void writeDemoFile();
|
|
//bool hasPlayedDemo();
|
|
|
|
#ifndef ANDROID_PUBLISH
|
|
void testCreationAndDestruction();
|
|
void testJoiningAndDestruction();
|
|
#endif /*ANDROID_PUBLISH*/
|
|
|
|
bool _verbose;
|
|
int _frames;
|
|
int _lastTickMs;
|
|
|
|
static bool _hasInitedStatics;
|
|
};
|
|
|
|
#endif//NINECRAFTAPP_H__
|