src/botStuff.h

changeset 136
1c40bb4f8221
parent 134
eca2fc0acaa2
child 139
cf11621ae422
equal deleted inserted replaced
135:8b9132fea327 136:1c40bb4f8221
32 #ifndef BOTC_BOTSTUFF_H 32 #ifndef BOTC_BOTSTUFF_H
33 #define BOTC_BOTSTUFF_H 33 #define BOTC_BOTSTUFF_H
34 34
35 #include "main.h" 35 #include "main.h"
36 36
37 struct Limits 37 namespace Limits
38 { 38 {
39 static const int MaxStates = 256; 39 static constexpr int MaxStates = 256;
40 static const int MaxEvents = 32; 40 static constexpr int MaxEvents = 32;
41 static const int MaxGlobalEvents = 32; 41 static constexpr int MaxGlobalEvents = 32;
42 static const int MaxGlobalVars = 128; 42 static constexpr int MaxGlobalVars = 128;
43 static const int MaxGlobalArrays = 16; 43 static constexpr int MaxGlobalArrays = 16;
44 static const int MaxArraySize = 65536; 44 static constexpr int MaxArraySize = 65536;
45 static const int MaxStateVars = 16; 45 static constexpr int MaxStateVars = 16;
46 static const int MaxStringlistSize = 128; 46 static constexpr int MaxStringlistSize = 128;
47 static const int MaxStringLength = 256; 47 static constexpr int MaxStringLength = 256;
48 static const int MaxReactionTime = 52; 48 static constexpr int MaxReactionTime = 52;
49 static const int MaxStoredEvents = 64; 49 static constexpr int MaxStoredEvents = 64;
50 }; 50 };
51 51
52 named_enum class DataHeader 52 named_enum class DataHeader
53 { 53 {
54 Command, 54 Command,

mercurial