Mercurial > hg > openttd
annotate src/zoom_type.h @ 8616:9e46ac001a8c draft
(svn r12199) -Codechange: Remove magic around the results of GetTileTrackStatus().
author | frosch <frosch@openttd.org> |
---|---|
date | Wed, 20 Feb 2008 17:49:50 +0000 |
parents | c26c28875749 |
children | 718b9b6a6ccd |
rev | line source |
---|---|
8123
c26c28875749
(svn r11684) -Codechange: split gfx.h in a type and functional header.
rubidium <rubidium@openttd.org>
parents:
diff
changeset
|
1 /* $Id$ */ |
c26c28875749
(svn r11684) -Codechange: split gfx.h in a type and functional header.
rubidium <rubidium@openttd.org>
parents:
diff
changeset
|
2 |
c26c28875749
(svn r11684) -Codechange: split gfx.h in a type and functional header.
rubidium <rubidium@openttd.org>
parents:
diff
changeset
|
3 /** @file zoom_type.h Types related to zooming in and out. */ |
c26c28875749
(svn r11684) -Codechange: split gfx.h in a type and functional header.
rubidium <rubidium@openttd.org>
parents:
diff
changeset
|
4 |
c26c28875749
(svn r11684) -Codechange: split gfx.h in a type and functional header.
rubidium <rubidium@openttd.org>
parents:
diff
changeset
|
5 #ifndef ZOOM_TYPE_H |
c26c28875749
(svn r11684) -Codechange: split gfx.h in a type and functional header.
rubidium <rubidium@openttd.org>
parents:
diff
changeset
|
6 #define ZOOM_TYPE_H |
c26c28875749
(svn r11684) -Codechange: split gfx.h in a type and functional header.
rubidium <rubidium@openttd.org>
parents:
diff
changeset
|
7 |
c26c28875749
(svn r11684) -Codechange: split gfx.h in a type and functional header.
rubidium <rubidium@openttd.org>
parents:
diff
changeset
|
8 #include "core/enum_type.hpp" |
c26c28875749
(svn r11684) -Codechange: split gfx.h in a type and functional header.
rubidium <rubidium@openttd.org>
parents:
diff
changeset
|
9 |
c26c28875749
(svn r11684) -Codechange: split gfx.h in a type and functional header.
rubidium <rubidium@openttd.org>
parents:
diff
changeset
|
10 enum ZoomLevel { |
c26c28875749
(svn r11684) -Codechange: split gfx.h in a type and functional header.
rubidium <rubidium@openttd.org>
parents:
diff
changeset
|
11 /* Our possible zoom-levels */ |
c26c28875749
(svn r11684) -Codechange: split gfx.h in a type and functional header.
rubidium <rubidium@openttd.org>
parents:
diff
changeset
|
12 ZOOM_LVL_BEGIN = 0, |
c26c28875749
(svn r11684) -Codechange: split gfx.h in a type and functional header.
rubidium <rubidium@openttd.org>
parents:
diff
changeset
|
13 ZOOM_LVL_NORMAL = 0, |
c26c28875749
(svn r11684) -Codechange: split gfx.h in a type and functional header.
rubidium <rubidium@openttd.org>
parents:
diff
changeset
|
14 ZOOM_LVL_OUT_2X, |
c26c28875749
(svn r11684) -Codechange: split gfx.h in a type and functional header.
rubidium <rubidium@openttd.org>
parents:
diff
changeset
|
15 ZOOM_LVL_OUT_4X, |
c26c28875749
(svn r11684) -Codechange: split gfx.h in a type and functional header.
rubidium <rubidium@openttd.org>
parents:
diff
changeset
|
16 ZOOM_LVL_OUT_8X, |
c26c28875749
(svn r11684) -Codechange: split gfx.h in a type and functional header.
rubidium <rubidium@openttd.org>
parents:
diff
changeset
|
17 ZOOM_LVL_END, |
c26c28875749
(svn r11684) -Codechange: split gfx.h in a type and functional header.
rubidium <rubidium@openttd.org>
parents:
diff
changeset
|
18 |
c26c28875749
(svn r11684) -Codechange: split gfx.h in a type and functional header.
rubidium <rubidium@openttd.org>
parents:
diff
changeset
|
19 /* Here we define in which zoom viewports are */ |
c26c28875749
(svn r11684) -Codechange: split gfx.h in a type and functional header.
rubidium <rubidium@openttd.org>
parents:
diff
changeset
|
20 ZOOM_LVL_VIEWPORT = ZOOM_LVL_NORMAL, |
c26c28875749
(svn r11684) -Codechange: split gfx.h in a type and functional header.
rubidium <rubidium@openttd.org>
parents:
diff
changeset
|
21 ZOOM_LVL_NEWS = ZOOM_LVL_NORMAL, |
c26c28875749
(svn r11684) -Codechange: split gfx.h in a type and functional header.
rubidium <rubidium@openttd.org>
parents:
diff
changeset
|
22 ZOOM_LVL_INDUSTRY = ZOOM_LVL_OUT_2X, |
c26c28875749
(svn r11684) -Codechange: split gfx.h in a type and functional header.
rubidium <rubidium@openttd.org>
parents:
diff
changeset
|
23 ZOOM_LVL_TOWN = ZOOM_LVL_OUT_2X, |
c26c28875749
(svn r11684) -Codechange: split gfx.h in a type and functional header.
rubidium <rubidium@openttd.org>
parents:
diff
changeset
|
24 ZOOM_LVL_AIRCRAFT = ZOOM_LVL_NORMAL, |
c26c28875749
(svn r11684) -Codechange: split gfx.h in a type and functional header.
rubidium <rubidium@openttd.org>
parents:
diff
changeset
|
25 ZOOM_LVL_SHIP = ZOOM_LVL_NORMAL, |
c26c28875749
(svn r11684) -Codechange: split gfx.h in a type and functional header.
rubidium <rubidium@openttd.org>
parents:
diff
changeset
|
26 ZOOM_LVL_TRAIN = ZOOM_LVL_NORMAL, |
c26c28875749
(svn r11684) -Codechange: split gfx.h in a type and functional header.
rubidium <rubidium@openttd.org>
parents:
diff
changeset
|
27 ZOOM_LVL_ROADVEH = ZOOM_LVL_NORMAL, |
c26c28875749
(svn r11684) -Codechange: split gfx.h in a type and functional header.
rubidium <rubidium@openttd.org>
parents:
diff
changeset
|
28 ZOOM_LVL_WORLD_SCREENSHOT = ZOOM_LVL_NORMAL, |
c26c28875749
(svn r11684) -Codechange: split gfx.h in a type and functional header.
rubidium <rubidium@openttd.org>
parents:
diff
changeset
|
29 |
c26c28875749
(svn r11684) -Codechange: split gfx.h in a type and functional header.
rubidium <rubidium@openttd.org>
parents:
diff
changeset
|
30 ZOOM_LVL_DETAIL = ZOOM_LVL_OUT_2X, ///< All zoomlevels below or equal to this, will result in details on the screen, like road-work, ... |
c26c28875749
(svn r11684) -Codechange: split gfx.h in a type and functional header.
rubidium <rubidium@openttd.org>
parents:
diff
changeset
|
31 |
c26c28875749
(svn r11684) -Codechange: split gfx.h in a type and functional header.
rubidium <rubidium@openttd.org>
parents:
diff
changeset
|
32 ZOOM_LVL_MIN = ZOOM_LVL_NORMAL, |
c26c28875749
(svn r11684) -Codechange: split gfx.h in a type and functional header.
rubidium <rubidium@openttd.org>
parents:
diff
changeset
|
33 ZOOM_LVL_MAX = ZOOM_LVL_OUT_8X, |
c26c28875749
(svn r11684) -Codechange: split gfx.h in a type and functional header.
rubidium <rubidium@openttd.org>
parents:
diff
changeset
|
34 }; |
c26c28875749
(svn r11684) -Codechange: split gfx.h in a type and functional header.
rubidium <rubidium@openttd.org>
parents:
diff
changeset
|
35 DECLARE_POSTFIX_INCREMENT(ZoomLevel) |
c26c28875749
(svn r11684) -Codechange: split gfx.h in a type and functional header.
rubidium <rubidium@openttd.org>
parents:
diff
changeset
|
36 |
c26c28875749
(svn r11684) -Codechange: split gfx.h in a type and functional header.
rubidium <rubidium@openttd.org>
parents:
diff
changeset
|
37 #endif /* ZOOM_TYPE_H */ |