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 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) {