#ifndef MAIN_CODE_H_INCLUDED #define MAIN_CODE_H_INCLUDED #include #include #include #ifdef TARGET_ANDROID #include #include #include #endif #include "boost/shared_ptr.hpp" #include "boost/thread/thread.hpp" #include "boost/assign.hpp" #include "boost/bind.hpp" #include "boost/asio.hpp" #include "boost/signal.hpp" #include "include/Engine.h" using namespace SE; class TMyApplication : public TApplication { protected: public: bool Inited; float Velocity; TFlexModel FlexModel; std::vector TubeModelArr; std::vector TubeBodyArr; //std::list> BoxList; vec3 PrevCamVec; vec3 RotateAxis; //float RotateShift; vec2 RotateShift; boost::signal OnUpdateSignal; TMyApplication() : TApplication(), Inited(false) { } virtual void InnerInit(); virtual void InnerDeinit(); virtual void InnerDraw(); virtual void InnerUpdate(cardinal dt); bool IsInited() { return Inited; } virtual void InnerOnMove(vec2 shift); virtual void InnerOnTapUp(vec2 p); virtual void InnerOnTapUpAfterMove(vec2 p); virtual void OnMouseWheel(short int delta); void UpdatePitVector(cardinal dt); void RecreateLevel(); }; #endif