OpenEnroth 73e68f7
|
#include "Arcomage.h"
#include <string>
#include "Engine/EngineGlobals.h"
#include "Engine/Data/AwardEnums.h"
#include "Engine/Data/HouseEnumFunctions.h"
#include "Engine/Graphics/Renderer/Renderer.h"
#include "Engine/Graphics/Image.h"
#include "Engine/Localization.h"
#include "Engine/Party.h"
#include "Engine/Random/Random.h"
#include "Engine/AssetsManager.h"
#include "GUI/GUIWindow.h"
#include "GUI/UI/UIHouses.h"
#include "Media/Audio/AudioPlayer.h"
#include "Media/MediaPlayer.h"
#include "Utility/IndexedArray.h"
Classes | |
struct | ArcomageStartConditions |
struct | am_ai_cardpowerstruct |
struct | arcomage_mouse |
Macros | |
#define | APPLY_TO_PLAYER(PLAYER, ENEMY, FIELD, VAL, RES) |
#define | APPLY_TO_ENEMY(PLAYER, ENEMY, FIELD, VAL, RES) APPLY_TO_PLAYER(ENEMY, PLAYER, FIELD, VAL, RES) |
#define | APPLY_TO_BOTH(PLAYER, ENEMY, FIELD, VAL, RES_P, RES_E) |
Functions | |
void | SetStartConditions () |
void | SetStartGameData () |
void | FillPlayerDeck () |
void | InitalHandsFill () |
void | GetNextCardFromDeck (int player_num) |
int | GetEmptyCardSlotIndex (int player_num) |
void | IncreaseResourcesInTurn (int player_num) |
void | TurnChange () |
bool | IsGameOver () |
int | CalculateCardPower (ArcomagePlayer *player, ArcomagePlayer *enemy, ArcomageCard *pCard, int mastery) |
char | PlayerTurn (int player_num) |
void | DrawGameUI (int animation_stage) |
void | DrawSparks () |
void | DrawRectanglesForText () |
void | DrawPlayersText () |
void | DrawPlayerLevels (std::string_view str, Pointi *pXY) |
void | DrawBricksCount (std::string_view str, Pointi *pXY) |
void | DrawGemsCount (std::string_view str, Pointi *pXY) |
void | DrawBeastsCount (std::string_view str, Pointi *pXY) |
void | DrawPlayersTowers () |
void | DrawPlayersWall () |
void | DrawCards () |
void | DrawCardAnimation (int animation_stage) |
int | GetPlayerHandCardCount (int player_num) |
int | DrawCardsRectangles (int player_num) |
bool | DiscardCard (int player_num, int card_slot_index) |
bool | PlayCard (int player_num, int card_slot_num) |
bool | CanCardBePlayed (int player_num, int hand_card_indx) |
void | ApplyCardToPlayer (int player_num, int uCardID) |
int | new_explosion_effect (Pointi *startXY, int effect_value) |
int | ApplyDamageToBuildings (int player_num, int damage) |
void | GameResultsApply () |
void | am_DrawText (std::string_view str, Pointi *pXY) |
void | DrawRect (Recti *pRect, Color uColor, char bSolidFill) |
bool | OpponentsAITurn (int player_num) |
void | set_stru1_field_8_InArcomage (int inValue) |
#define APPLY_TO_BOTH | ( | PLAYER, | |
ENEMY, | |||
FIELD, | |||
VAL, | |||
RES_P, | |||
RES_E | |||
) |
#define APPLY_TO_ENEMY | ( | PLAYER, | |
ENEMY, | |||
FIELD, | |||
VAL, | |||
RES | |||
) | APPLY_TO_PLAYER(ENEMY, PLAYER, FIELD, VAL, RES) |
#define APPLY_TO_PLAYER | ( | PLAYER, | |
ENEMY, | |||
FIELD, | |||
VAL, | |||
RES | |||
) |
void am_DrawText | ( | std::string_view | str, |
Pointi * | pXY | ||
) |
void ApplyCardToPlayer | ( | int | player_num, |
int | uCardID | ||
) |
int ApplyDamageToBuildings | ( | int | player_num, |
int | damage | ||
) |
int CalculateCardPower | ( | ArcomagePlayer * | player, |
ArcomagePlayer * | enemy, | ||
ArcomageCard * | pCard, | ||
int | mastery | ||
) |
bool CanCardBePlayed | ( | int | player_num, |
int | hand_card_indx | ||
) |
bool DiscardCard | ( | int | player_num, |
int | card_slot_index | ||
) |
void DrawBeastsCount | ( | std::string_view | str, |
Pointi * | pXY | ||
) |
void DrawBricksCount | ( | std::string_view | str, |
Pointi * | pXY | ||
) |
void DrawCardAnimation | ( | int | animation_stage | ) |
void DrawCards | ( | ) |
signed int DrawCardsRectangles | ( | int | player_num | ) |
void DrawGameUI | ( | int | animation_stage | ) |
void DrawGemsCount | ( | std::string_view | str, |
Pointi * | pXY | ||
) |
void DrawPlayerLevels | ( | std::string_view | str, |
Pointi * | pXY | ||
) |
void DrawPlayersText | ( | ) |
void DrawPlayersTowers | ( | ) |
void DrawPlayersWall | ( | ) |
void DrawRectanglesForText | ( | ) |
void DrawSparks | ( | ) |
void FillPlayerDeck | ( | ) |
void GameResultsApply | ( | ) |
int GetEmptyCardSlotIndex | ( | int | player_num | ) |
void GetNextCardFromDeck | ( | int | player_num | ) |
int GetPlayerHandCardCount | ( | int | player_num | ) |
void IncreaseResourcesInTurn | ( | int | player_num | ) |
void InitalHandsFill | ( | ) |
bool IsGameOver | ( | ) |
int new_explosion_effect | ( | Pointi * | startXY, |
int | effect_value | ||
) |
bool OpponentsAITurn | ( | int | player_num | ) |
bool PlayCard | ( | int | player_num, |
int | card_slot_num | ||
) |
char PlayerTurn | ( | int | player_num | ) |
void set_stru1_field_8_InArcomage | ( | int | inValue | ) |
void SetStartConditions | ( | ) |
void SetStartGameData | ( | ) |
void TurnChange | ( | ) |
am_effects_struct am_effects_array[10] |
ArcomagePlayer am_Players[2] |
Pointi anim_card_pos_drawncard |
Pointi anim_card_pos_playdiscard |
Pointi anim_card_spd_drawncard |
Pointi anim_card_spd_playdiscard |
int Card_Hover_Index |
am_ai_cardpowerstruct cards_power[10] |
int current_card_slot_index |
int current_player_num |
int deck_walk_index |
ArcomageDeck deckMaster |
int discarded_card_id |
int drawn_card_anim_cnt |
char drawn_card_anim_start |
int drawn_card_slot_index |
int hide_card_anim_count |
char hide_card_anim_runnning |
char hide_card_anim_start |
int magic_bonus = 1 |
int max_resources_amount = 100 |
int max_tower_height = 50 |
int minimum_cards_at_hand = 5 |
char need_to_discard_card |
int num_actions_left |
int num_cards_to_discard |
int opponent_mastery = 1 |
char opponents_turn |
ArcomageGame* pArcomageGame = new ArcomageGame |
ArcomageDeck playDeck |
char playdiscard_anim_start |
int played_card_id |
char Player1Name[] = "Player" |
char Player2Name[] = "Enemy" |
bool Player_Cards_Shift = true |
bool Player_Gets_First_Turn = true |
int quarry_bonus = 1 |
char See_Opponents_Cards = 0 |
AcromageCardOnTable shown_cards[10] |
|
constexpr |
|
constexpr |
int start_beasts_amount |
int start_bricks_amount |
IndexedArray<ArcomageStartConditions, HOUSE_FIRST_ARCOMAGE_TAVERN, HOUSE_LAST_ARCOMAGE_TAVERN> start_conditions |
int start_gems_amount |
int start_magic_level |
int start_quarry_level |
int start_tower_height |
int start_wall_height |
int start_zoo_level |
char use_start_bonus = 1 |
int zoo_bonus = 1 |