Overview
SHA1 Hash: | 4aa9d7f4841e3fe2bbe497a170e2ae88e4f40d83 |
---|---|
Date: | 2012-07-15 12:48:10 |
User: | kinaba |
Comment: | cleanup |
Timelines: | family | ancestors | descendants | both | trunk |
Diffs: | redesign |
Downloads: | Tarball | ZIP archive |
Other Links: | files | file ages | manifest |
Tags And Properties
- branch=trunk inherited from [16f0b5784f]
- sym-trunk inherited from [16f0b5784f]
Changes
Modified src/game.d from [5d6b45c159e125db] to [9d4255819d57ec36].
45 45 mixin DeriveCreate; 46 46 mixin DeriveCompare; 47 47 mixin DeriveShow; 48 48 Water clone() const { return cast(Water)this; } 49 49 50 50 static load(string[string] params) 51 51 { 52 - return new Water( 53 - params.get("Water", "0").to!int(), 54 - params.get("Flooding", "0").to!int() 55 - ); 52 + return new Water(params.get("Water", "0").to!int(), 53 + params.get("Flooding", "0").to!int()); 56 54 } 57 55 58 56 int level(int number_of_update) const 59 57 { 60 58 return pace ? base+(number_of_update/pace) : base; 61 59 } 62 60 ................................................................................ 124 122 return new Map(raw_data, params, trampo); 125 123 } 126 124 127 125 char[][] data; 128 126 Pos robot; 129 127 Pos lift; 130 128 int waterproof; 131 - // TODO: immutable 132 129 Pos[char] tr_target; 133 130 Pos[][char] tr_source; 134 131 const(Hige) hige; 135 132 int razor; 136 133 137 134 Map clone() const { return new Map(this); } 138 135 this(in Map m) {