author | smatz |
Sat, 13 Dec 2008 15:59:25 +0000 | |
changeset 10416 | b35c0a4c73c5 |
parent 9913 | d9ce89020cc0 |
permissions | -rw-r--r-- |
8770
ea070bc7bdad
(svn r12469) -Codechange: split type related stuff from group.h (and openttd.h) to group_type.h.
rubidium
parents:
diff
changeset
|
1 |
/* $Id$ */ |
ea070bc7bdad
(svn r12469) -Codechange: split type related stuff from group.h (and openttd.h) to group_type.h.
rubidium
parents:
diff
changeset
|
2 |
|
ea070bc7bdad
(svn r12469) -Codechange: split type related stuff from group.h (and openttd.h) to group_type.h.
rubidium
parents:
diff
changeset
|
3 |
/** @file group_type.h Types of a group. */ |
ea070bc7bdad
(svn r12469) -Codechange: split type related stuff from group.h (and openttd.h) to group_type.h.
rubidium
parents:
diff
changeset
|
4 |
|
ea070bc7bdad
(svn r12469) -Codechange: split type related stuff from group.h (and openttd.h) to group_type.h.
rubidium
parents:
diff
changeset
|
5 |
#ifndef GROUP_TYPE_H |
ea070bc7bdad
(svn r12469) -Codechange: split type related stuff from group.h (and openttd.h) to group_type.h.
rubidium
parents:
diff
changeset
|
6 |
#define GROUP_TYPE_H |
ea070bc7bdad
(svn r12469) -Codechange: split type related stuff from group.h (and openttd.h) to group_type.h.
rubidium
parents:
diff
changeset
|
7 |
|
ea070bc7bdad
(svn r12469) -Codechange: split type related stuff from group.h (and openttd.h) to group_type.h.
rubidium
parents:
diff
changeset
|
8 |
typedef uint16 GroupID; |
ea070bc7bdad
(svn r12469) -Codechange: split type related stuff from group.h (and openttd.h) to group_type.h.
rubidium
parents:
diff
changeset
|
9 |
|
ea070bc7bdad
(svn r12469) -Codechange: split type related stuff from group.h (and openttd.h) to group_type.h.
rubidium
parents:
diff
changeset
|
10 |
enum { |
ea070bc7bdad
(svn r12469) -Codechange: split type related stuff from group.h (and openttd.h) to group_type.h.
rubidium
parents:
diff
changeset
|
11 |
ALL_GROUP = 0xFFFD, |
ea070bc7bdad
(svn r12469) -Codechange: split type related stuff from group.h (and openttd.h) to group_type.h.
rubidium
parents:
diff
changeset
|
12 |
DEFAULT_GROUP = 0xFFFE, ///< ungrouped vehicles are in this group. |
ea070bc7bdad
(svn r12469) -Codechange: split type related stuff from group.h (and openttd.h) to group_type.h.
rubidium
parents:
diff
changeset
|
13 |
INVALID_GROUP = 0xFFFF, |
9913
d9ce89020cc0
(svn r14063) -Codechange: replace some "magic" constants with enumified constants.
rubidium
parents:
8770
diff
changeset
|
14 |
|
d9ce89020cc0
(svn r14063) -Codechange: replace some "magic" constants with enumified constants.
rubidium
parents:
8770
diff
changeset
|
15 |
MAX_LENGTH_GROUP_NAME_BYTES = 31, ///< The maximum length of a group name in bytes including '\0' |
d9ce89020cc0
(svn r14063) -Codechange: replace some "magic" constants with enumified constants.
rubidium
parents:
8770
diff
changeset
|
16 |
MAX_LENGTH_GROUP_NAME_PIXELS = 150, ///< The maximum length of a group name in pixels |
8770
ea070bc7bdad
(svn r12469) -Codechange: split type related stuff from group.h (and openttd.h) to group_type.h.
rubidium
parents:
diff
changeset
|
17 |
}; |
ea070bc7bdad
(svn r12469) -Codechange: split type related stuff from group.h (and openttd.h) to group_type.h.
rubidium
parents:
diff
changeset
|
18 |
|
ea070bc7bdad
(svn r12469) -Codechange: split type related stuff from group.h (and openttd.h) to group_type.h.
rubidium
parents:
diff
changeset
|
19 |
struct Group; |
ea070bc7bdad
(svn r12469) -Codechange: split type related stuff from group.h (and openttd.h) to group_type.h.
rubidium
parents:
diff
changeset
|
20 |
|
ea070bc7bdad
(svn r12469) -Codechange: split type related stuff from group.h (and openttd.h) to group_type.h.
rubidium
parents:
diff
changeset
|
21 |
#endif /* GROUP_TYPE_H */ |