Subversion Repositories jumper

Rev

Rev 4 | Rev 8 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
1 daniel-mar 1
unit Constants;
2
 
3
interface
4
 
5
uses
6
  SysUtils;
7
 
8
const
9
  // Metrik
10
  MET_FIELD_SPACE = 3;
11
  MET_FIELD_SIZE = 37;
12
  MET_HALFTAB_SIZE = (MET_FIELD_SIZE+MET_FIELD_SPACE) div 2; // 20
13
  MET_PREVIEW_SIZE_RATIO = 0.30;
14
  MET_PERCENT_PNL_TIME = 0.28;
15
  MET_PERCENT_PNL_STONES = 0.47;
16
  MET_OUTER_MARGIN = 8;
17
  MET_SHAPE_MARGIN = 3;
18
 
19
  // Resourcennamen
20
  RES_JUMP = 'Jump';
7 daniel-mar 21
  RES_UNDO = 'Undo';
1 daniel-mar 22
  RES_FINISH = 'Finish';
4 daniel-mar 23
  RES_LOSE = 'Lose';
1 daniel-mar 24
  RES_EMPTY = 'EmptyField';
25
  RES_GREEN = 'GreenStone';
26
  RES_YELLOW = 'YellowStone';
27
  RES_RED = 'RedStone';
28
 
29
  // Registry
30
  REG_KEY = 'Software\ViaThinkSoft\PegSolitaire\';
31
  REG_SOUND = 'Sound';
32
  REG_PLAYERNAME = 'LastPlayerName';
33
  REG_REPLAY = 'Replay';
34
 
35
  // Levels
36
  LVL_EXT = '.brd';
37
  LVL_PATH = 'Boards' + PathDelim;
38
  LVL_FILE = LVL_PATH + '%s' + LVL_EXT;
39
 
40
  // Journal
41
  JNL_EXT = '.jnl';
42
  JNL_PATH = 'Journal' + PathDelim;
43
  JNL_FILE = JNL_PATH + '%s' + JNL_EXT;
44
  JNL_SEP = '|';
45
  JNL_ENTRY = '%s' + JNL_SEP + '%s' + JNL_SEP + '%d' + JNL_SEP + '%d' + JNL_SEP + '%d' + JNL_SEP + '%d';
46
 
47
resourcestring
48
  LNG_SAVED = 'History successfully saved!';
49
  LNG_STONES_REMOVED = '%d of %d stones removed';
50
  LNG_POINTS = 'Score: %d';
51
  LNG_TIME = 'Time: %s';
52
  LNG_LVL_INVALID_NO_JUMP = 'Warning! The level is not playable. There are no jumps possible.';
53
  LNG_JUMP_LOG = '%d [%d, %d] -> %d [%d, %d];';
54
  LNG_COULD_NOT_CREATE_DIR = 'Warning: Could not create directory "%s".';
55
  LNG_SCORE = 'Score: %d';
56
  LNG_REMAINING = 'Remaining stones: %d (%f%%)';
57
  LNG_TIME_SECONDS = 'Time: %d seconds';
58
  LNG_POINTS_PER_MINUTE = '%d points per minute';
59
  LNG_ENTER_NAME = 'Please enter your name to get added to the high score lists.';
60
 
61
implementation
62
 
63
end.