-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathMainWindow.h
54 lines (47 loc) · 1 KB
/
MainWindow.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
/*
* Copyright 2009-2012 Scott McCreary
* Based on BeVexed by DarkWyrm Copyright 2007-2009
*
* Distributed under terms of the MIT License.
*
*/
#ifndef MAINWIN_H
#define MAINWIN_H
#include <Application.h>
#include <Bitmap.h>
#include <Entry.h>
#include <Path.h>
#include <Roster.h>
#include <Screen.h>
#include <Window.h>
#include <MenuBar.h>
#include <Rect.h>
#include <String.h>
#include <stdio.h>
#include <stdlib.h>
#include <TranslationUtils.h>
#include "TimerView.h"
class HexGrid;
class MainWindow : public BWindow
{
public:
MainWindow(void);
bool QuitRequested(void);
void MessageReceived(BMessage *msg);
private:
float GenerateTiles(const BPoint& point, HexGrid* grid);
void GenerateGrid(uint8 size, bool newGame);
void ScanBackgrounds(void);
void SetBackground(const char *name);
HexGrid *fGrid, *fWorkGrid;
BView *fBack;
BMenuBar *fMenuBar;
BMenu *fBackMenu;
TimerView *fTimer;
uint8 fGridSize;
uint8 fTileSize;
uint8 fNumberBase;
BString fBackPath;
BString fBackName;
};
#endif