battle.h File Reference

Header file for battle mode interface. More...

#include <string>
#include <vector>
#include <deque>
#include <map>
#include "utils.h"
#include "defs.h"
#include "video.h"
#include "audio.h"
#include "global.h"
#include "global_actors.h"
#include "mode_manager.h"
#include "system.h"
#include "battle_windows.h"

Include dependency graph for battle.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  hoa_battle
namespace  hoa_battle::private_battle

Classes

class  hoa_battle::BattleMode
 Manages all objects, events, and scenes that occur in a battle. More...
class  hoa_battle::private_battle::ScriptEvent
 Representation of a single, scripted action to be executed in battle. More...

Enumerations

enum  hoa_battle::private_battle::CURSOR_STATE {
  hoa_battle::private_battle::CURSOR_IDLE = 0, hoa_battle::private_battle::CURSOR_WAIT = 1, hoa_battle::private_battle::CURSOR_SELECT_ATTACK_POINT = 2, hoa_battle::private_battle::CURSOR_SELECT_TARGET = 3,
  hoa_battle::private_battle::CURSOR_SELECT_PARTY = 4
}
 Enumerated values for the possible states that the user's input context may be in These constants are used throughout the battle code for various purposes, including determining what user input commands should do, which components of the battle scene should be updated, and what objects in the battle scene should be drawn. More...

Functions

float hoa_battle::private_battle::ComputeAveragePartyLevel ()
 Finds the average experience level of all members in the party.

Variables

const bool hoa_battle::private_battle::ACTIVE_BATTLE_MODE = false
 True if we are using active battle mode (i.e. timers do not pause when player is making choices.
bool hoa_battle::BATTLE_DEBUG
BattleMode * hoa_battle::private_battle::current_battle
 A pointer to the BattleMode object that is managing the current battle that is taking place.
const uint32 hoa_battle::private_battle::INVALID_BATTLE_ACTOR_INDEX = 999
 Returned as an index when looking for a character or enemy and they do not exist.
const uint32 hoa_battle::private_battle::ITEM_WARM_UP_TIME = 1000
 Warm up time for using items (try to keep short, should be constant regardless.
const uint32 hoa_battle::private_battle::MAX_INIT_WAIT_TIME = 8000
 When a battle first starts, this is the wait time for the slowest actor.
const float hoa_battle::private_battle::MONSTER_LOCATIONS [][2]
 Possible monster locations in monster creation order.
Action Type Constants
Identifications for the types of actions a player's characters may perform

const uint32 hoa_battle::private_battle::ACTION_TYPE_ATTACK = 0
const uint32 hoa_battle::private_battle::ACTION_TYPE_DEFEND = 1
const uint32 hoa_battle::private_battle::ACTION_TYPE_ITEM = 3
const uint32 hoa_battle::private_battle::ACTION_TYPE_SUPPORT = 2
Screen dimension constants
const uint32 hoa_battle::private_battle::SCREEN_HEIGHT = 12
 The height of the screen in number of tiles (12 x 64 = 768).
const uint32 hoa_battle::private_battle::SCREEN_LENGTH = 16
 The length of the screen in number of tiles (16 x 64 = 1024).
const uint32 hoa_battle::private_battle::TILE_SIZE = 64
 Battle scenes are visualized via an invisible grid of 64x64 tiles.


Detailed Description

Header file for battle mode interface.

****************************************************************************

Author:
Viljami Korhonen, mindflayer@allacrost.org

Corey Hoffstein, visage@allacrost.org

Andy Gardner, chopperdave@allacrost.org

This code handles event processing, game state updates, and video frame drawing when the user is fighting a battle.

Definition in file battle.h.


Generated on Fri Jul 6 23:11:29 2007 for Hero of Allacrost by  doxygen 1.5.1