comparison Arcomage.cpp @ 1201:601c085deff7

m
author Gloval
date Sun, 09 Jun 2013 01:05:02 +0400
parents c42f255ce1dc
children 4d90f0591add
comparison
equal deleted inserted replaced
1200:c42f255ce1dc 1201:601c085deff7
112 112
113 Acromage_st1 shown_cards[10]; 113 Acromage_st1 shown_cards[10];
114 114
115 stru272 array_4FABD0[10]; 115 stru272 array_4FABD0[10];
116 116
117
117 ArcomageDeck playDeck; 118 ArcomageDeck playDeck;
118
119 //char byte_5052A8[108];
120 //int dword_505314[108]; // weak
121
122 ArcomageDeck deckMaster; 119 ArcomageDeck deckMaster;
123 //char byte_5054C8[32]; // idb 120
124 //char byte_5054E8[108]; 121 char Player2Name[] = "Enemy";
125 //int dword_505554[108]; 122 char Player1Name[] = "Player";
126 123 char pDeckMaster[] = "Master Deck";
127 char pArcomagePlayer2Name[]="Enemy";
128 char pArcomagePlayer1Name[]="Player";
129 char pDeckMaster[]="Master Deck";
130
131 124
132 /* 267 */ 125 /* 267 */
133 #pragma pack(push, 1) 126 #pragma pack(push, 1)
134 struct stru273 127 struct stru273
135 { 128 {
147 140
148 141
149 142
150 char am_byte_4E185D; // weak 143 char am_byte_4E185D; // weak
151 144
152 int start_tower_height; // weak 145 int start_tower_height;
153 int start_wall_height; // weak 146 int start_wall_height;
154 int start_quarry_level; // weak 147 int start_quarry_level;
155 int start_magic_level; // weak 148 int start_magic_level;
156 int start_zoo_level; // weak 149 int start_zoo_level;
157 150
158 151
159 int minimum_cards_at_hand = 5; // weak 152 int minimum_cards_at_hand = 5;
160 int quarry_bonus = 1; // weak 153 int quarry_bonus = 1;
161 int magic_bonus = 1; // weak 154 int magic_bonus = 1;
162 int might_bonus = 1; // weak 155 int zoo_bonus = 1;
163 156
164 int max_tower_height = 50; // weak 157 int max_tower_height = 50;
165 int max_resources_amount = 100 ; // weak 158 int max_resources_amount = 100 ;
166 159
167 int dword_4DF3A4; // weak 160 int dword_4DF3A4; // weak
168 161
169 char byte_4FAA2C; // weak 162 char byte_4FAA2C; // weak
170 char byte_4FAA2D; // weak 163 char byte_4FAA2D; // weak
171 164
172 int current_player_num; // idb 165 int current_player_num; // idb
173 char am_byte_4FAA77; // weak 166 char am_byte_4FAA77; // weak
174 167
175 signed int current_card_slot_index; // idb 168 signed int current_card_slot_index;
176 unsigned int played_card_id; // idb 169 unsigned int played_card_id; // idb
177 170
178 int deck_walk_index; // weak 171 int deck_walk_index;
179 172
180 int start_bricks_amount; // weak 173 int start_bricks_amount;
181 int start_gems_amount; // weak 174 int start_gems_amount;
182 int start_beasts_amount; // weak 175 int start_beasts_amount;
183 176
184 177
185 //----- (0040DD2F) -------------------------------------------------------- 178 //----- (0040DD2F) --------------------------------------------------------
186 bool stru273::_40DD2F() 179 bool stru273::_40DD2F()
187 { 180 {
1829 //----- (0040A346) -------------------------------------------------------- 1822 //----- (0040A346) --------------------------------------------------------
1830 void IncreaseResourcesInTurn( int player_num ) 1823 void IncreaseResourcesInTurn( int player_num )
1831 { 1824 {
1832 am_Players[player_num].resource_bricks += quarry_bonus + am_Players[player_num].quarry_level; 1825 am_Players[player_num].resource_bricks += quarry_bonus + am_Players[player_num].quarry_level;
1833 am_Players[player_num].resource_gems += magic_bonus + am_Players[player_num].magic_level; 1826 am_Players[player_num].resource_gems += magic_bonus + am_Players[player_num].magic_level;
1834 am_Players[player_num].resource_beasts += might_bonus + am_Players[player_num].zoo_level; 1827 am_Players[player_num].resource_beasts += zoo_bonus + am_Players[player_num].zoo_level;
1835 } 1828 }
1836 1829
1837 1830
1838 //----- (0040A383) -------------------------------------------------------- 1831 //----- (0040A383) --------------------------------------------------------
1839 void __cdecl am_40A383() 1832 void __cdecl am_40A383()
2383 text_position.x = 561; //- 6 * v6 / 2; 2376 text_position.x = 561; //- 6 * v6 / 2;
2384 DrawPlayerLevels(-1, text_buff, &text_position); 2377 DrawPlayerLevels(-1, text_buff, &text_position);
2385 2378
2386 res_value = am_Players[0].zoo_level; 2379 res_value = am_Players[0].zoo_level;
2387 if ( byte_4E185E ) 2380 if ( byte_4E185E )
2388 res_value = am_Players[0].zoo_level + might_bonus; 2381 res_value = am_Players[0].zoo_level + zoo_bonus;
2389 intToString(res_value, text_buff); 2382 intToString(res_value, text_buff);
2390 // v8 = 0; 2383 // v8 = 0;
2391 text_position.y = 236; 2384 text_position.y = 236;
2392 text_position.x = 14;// - 6 * v8 / 2; 2385 text_position.x = 14;// - 6 * v8 / 2;
2393 DrawPlayerLevels(-1, text_buff, &text_position); 2386 DrawPlayerLevels(-1, text_buff, &text_position);
2394 2387
2395 res_value = am_Players[1].zoo_level; 2388 res_value = am_Players[1].zoo_level;
2396 if ( byte_4E185E ) 2389 if ( byte_4E185E )
2397 res_value = am_Players[1].zoo_level + might_bonus; 2390 res_value = am_Players[1].zoo_level + zoo_bonus;
2398 intToString(res_value, text_buff); 2391 intToString(res_value, text_buff);
2399 // v10 = 0; 2392 // v10 = 0;
2400 text_position.y = 236; 2393 text_position.y = 236;
2401 text_position.x = 561;// - 6 * v10 / 2; 2394 text_position.x = 561;// - 6 * v10 / 2;
2402 DrawPlayerLevels(-1, text_buff, &text_position); 2395 DrawPlayerLevels(-1, text_buff, &text_position);
5806 int v6; // edx@9 5799 int v6; // edx@9
5807 RECT pXYZW; // [sp+8h] [bp-1Ch]@5 5800 RECT pXYZW; // [sp+8h] [bp-1Ch]@5
5808 POINT pXY; // [sp+18h] [bp-Ch]@5 5801 POINT pXY; // [sp+18h] [bp-Ch]@5
5809 5802
5810 pAudioPlayer->StopChannels(-1, -1); 5803 pAudioPlayer->StopChannels(-1, -1);
5811 strcpy(pArcomageGame->pPlayer1Name, pArcomagePlayer1Name); 5804 strcpy(pArcomageGame->pPlayer1Name, Player1Name);
5812 strcpy(pArcomageGame->pPlayer2Name, pArcomagePlayer2Name); 5805 strcpy(pArcomageGame->pPlayer2Name, Player2Name);
5813 am_byte_4FAA76 = 0; 5806 am_byte_4FAA76 = 0;
5814 am_byte_4FAA75 = 0; 5807 am_byte_4FAA75 = 0;
5815 5808
5816 for (int i=0; i<10; ++i) 5809 for (int i=0; i<10; ++i)
5817 { 5810 {
5893 start_magic_level = st_cond->magic_level - 1; 5886 start_magic_level = st_cond->magic_level - 1;
5894 start_zoo_level = st_cond->zoo_level - 1; 5887 start_zoo_level = st_cond->zoo_level - 1;
5895 minimum_cards_at_hand = 5; 5888 minimum_cards_at_hand = 5;
5896 quarry_bonus = 1; 5889 quarry_bonus = 1;
5897 magic_bonus = 1; 5890 magic_bonus = 1;
5898 might_bonus = 1; 5891 zoo_bonus = 1;
5899 max_tower_height = st_cond->max_tower; 5892 max_tower_height = st_cond->max_tower;
5900 max_resources_amount = st_cond->max_resources; 5893 max_resources_amount = st_cond->max_resources;
5901 5894
5902 dword_4DF3A4 = st_cond->field_14; 5895 dword_4DF3A4 = st_cond->field_14;
5903 5896