Differences From Artifact [5d6b45c159e125db]:
- File
src/game.d
- 2012-07-15 02:16:47 - part of checkin [34bbd14c1a] on branch trunk - Razor searching. (user: kinaba) [annotate]
To Artifact [9d4255819d57ec36]:
- File
src/game.d
- 2012-07-15 03:48:10 - part of checkin [4aa9d7f484] on branch trunk - cleanup (user: kinaba) [annotate]
45 mixin DeriveCreate; 45 mixin DeriveCreate;
46 mixin DeriveCompare; 46 mixin DeriveCompare;
47 mixin DeriveShow; 47 mixin DeriveShow;
48 Water clone() const { return cast(Water)this; } 48 Water clone() const { return cast(Water)this; }
49 49
50 static load(string[string] params) 50 static load(string[string] params)
51 { 51 {
52 return new Water( <
53 params.get("Water", "0").to!int(), | 52 return new Water(params.get("Water", "0").to!int(),
54 params.get("Flooding", "0").to!int() | 53 params.get("Flooding", "0").to!int());
55 ); <
56 } 54 }
57 55
58 int level(int number_of_update) const 56 int level(int number_of_update) const
59 { 57 {
60 return pace ? base+(number_of_update/pace) : base; 58 return pace ? base+(number_of_update/pace) : base;
61 } 59 }
62 60
................................................................................................................................................................................
124 return new Map(raw_data, params, trampo); 122 return new Map(raw_data, params, trampo);
125 } 123 }
126 124
127 char[][] data; 125 char[][] data;
128 Pos robot; 126 Pos robot;
129 Pos lift; 127 Pos lift;
130 int waterproof; 128 int waterproof;
131 // TODO: immutable <
132 Pos[char] tr_target; 129 Pos[char] tr_target;
133 Pos[][char] tr_source; 130 Pos[][char] tr_source;
134 const(Hige) hige; 131 const(Hige) hige;
135 int razor; 132 int razor;
136 133
137 Map clone() const { return new Map(this); } 134 Map clone() const { return new Map(this); }
138 this(in Map m) { 135 this(in Map m) {