| 1 |
|
| 2 |
|
| 3 |
#ifndef GameViewMainH |
| 4 |
#define GameViewMainH |
| 5 |
|
| 6 |
#include "CastleUIControls.hpp" |
| 7 |
#include "CastleControls.hpp" |
| 8 |
#include "CastleSoundEngine.hpp" |
| 9 |
#include "CastleScene.hpp" |
| 10 |
#include "CastleViewport.hpp" |
| 11 |
|
| 12 |
class TViewMain : public TCastleView |
| 13 |
{ |
| 14 |
__published: |
| 15 |
|
| 16 |
|
| 17 |
TCastleLabel* LabelFps; |
| 18 |
TCastleButton* ButtonMakeSound; |
| 19 |
TCastleButton* ButtonMove; |
| 20 |
TCastleButton* ButtonLoadBunny; |
| 21 |
TCastleSound* SoundZap; |
| 22 |
TCastleScene* Scene1; |
| 23 |
TCastleViewport* Viewport1; |
| 24 |
private: |
| 25 |
__fastcall void ClickMakeSound(TObject* Sender); |
| 26 |
__fastcall void ClickMove(TObject* Sender); |
| 27 |
__fastcall void ClickBunny(TObject* Sender); |
| 28 |
public: |
| 29 |
__fastcall TViewMain(TComponent* Owner); |
| 30 |
virtual __fastcall void Start(); |
| 31 |
virtual __fastcall void Update(const float SecondsPassed, bool &HandleInput); |
| 32 |
virtual __fastcall bool Press(const TInputPressRelease &Event); |
| 33 |
}; |
| 34 |
|
| 35 |
extern PACKAGE TViewMain *ViewMain; |
| 36 |
|
| 37 |
#endif |