ORTS

Global.H File Reference

#include "All.H"
#include "Vector.H"
#include "direct.h"
#include "Typeof.H"

Go to the source code of this file.

Classes

class  ExitException
struct  StringHash

Defines

#define rint(x)   int(real4(x)+0.5)
#define PACKED_STRUCT
#define PATH_SEP   '\\'
#define M_PI   3.14159265358979323846
#define M_PI_2   1.57079632679489661923
#define M_PI_4   0.78539816339744830962
#define M_1_PI   0.31830988618379067154
#define M_2_PI   0.63661977236758134308
#define M_SQRT2   1.41421356237309504880
#define M_SQRT1_2   0.70710678118654752440
#define srand48(n)   srand((n))
#define getcwd   _getcwd
#define chdir   _chdir
#define FOREVER   for (;;)
#define FOR(i, n)   typeof(n) _=(n); for (i=0; i < _; ++i)
#define FOR_DYN(i, n)   for (i=0; i < (n); ++i)
#define FORS(i, n)   for (sint4 i=0, _=(n); i < _; ++i)
#define FORS_DYN(i, n)   for (sint4 i=0; i < (n); ++i)
#define FORU(i, n)   for (uint4 i=0, _=(n); i < _; ++i)
#define FORU_DYN(i, n)   for (uint4 i=0; i < (n); ++i)
#define FORS_REV(i, n)   for (sint4 i=(n)-1; i >= 0; --i)
#define FORT(i, n)   for (typeof(n) i=0, _=(n); i < _; ++i)
#define FORT_DYN(i, n)   for (typeof(n) i=0; i < (n); ++i)
#define FORALL(CONT, i)   for (typeof((CONT).begin()) i = (CONT).begin(), _ = (CONT).end(); i != _; ++i)
#define FORALL_NI(CONT, i)   for (typeof((CONT).begin()) i = (CONT).begin(); i != (CONT).end();)
#define FORALL_B(CONT, i)
#define FORALL_DYN(CONT, i)   for (typeof((CONT).begin()) i = (CONT).begin(); i != (CONT).end(); ++i)
#define FORALL_REV(CONT, i)   for (typeof((CONT).rbegin()) i = (CONT).rbegin(), _ = (CONT).rend(); i != _; ++i)
#define FORALL_REV_B(CONT, i)
#define FORALL_REV_DYN(CONT, i)   for (typeof((CONT).rbegin()) i = (CONT).rbegin(); i != (CONT).rend(); ++i)
#define FIND(cont, it, elem)   typeof(cont.find(elem)) it = cont.find(elem);
#define errstr   std::cerr
#define ABORT   assert(0==1)
#define ERR(s)
#define ERR2(s1, s2)
#define REM(x)   errstr << "REMARK: " << x << std::endl;
#define REM2(x, y)   errstr << "REMARK: " << (x) << " " << (y) << std::endl;
#define NO_OVERLAP(p, q, n)   assert((p)+(n) <= (q) || (p) >= (q)+(n));
#define FAST_ROUND   0
#define ROUND_REAL8_TO_SINT4(in, out)   out = (int)rint(in)

Typedefs

typedef int8_t sint1
typedef uint8_t uint1
typedef int16_t sint2
typedef uint16_t uint2
typedef int32_t sint4
typedef uint32_t uint4
typedef int64_t sint8
typedef uint64_t uint8
typedef intptr_t sintptr
typedef uintptr_t uintptr
typedef float real4
typedef double real8
typedef long double realC
typedef void * vptr
typedef char * cptr
typedef const void * cvptr
typedef const char * ccptr
typedef const void *const cvptrc
typedef const char *const ccptrc

Functions

 BOOST_STATIC_ASSERT (sizeof(sint1)==1)
 BOOST_STATIC_ASSERT (min_sint1< 0)
 BOOST_STATIC_ASSERT (max_sint1 > 0)
 BOOST_STATIC_ASSERT (sizeof(uint1)==1)
 BOOST_STATIC_ASSERT (min_uint1==0)
 BOOST_STATIC_ASSERT (max_uint1 > 0)
 BOOST_STATIC_ASSERT (sizeof(sint2)==2)
 BOOST_STATIC_ASSERT (max_sint2 > 0)
 BOOST_STATIC_ASSERT (sizeof(uint2)==2)
 BOOST_STATIC_ASSERT (min_uint2==0)
 BOOST_STATIC_ASSERT (max_uint2 > 0)
 BOOST_STATIC_ASSERT (sizeof(sint4)==4)
 BOOST_STATIC_ASSERT (max_sint4 > 0)
 BOOST_STATIC_ASSERT (sizeof(uint4)==4)
 BOOST_STATIC_ASSERT (min_uint4==0)
 BOOST_STATIC_ASSERT (max_uint4 > 0)
 BOOST_STATIC_ASSERT (sizeof(sint8)==8)
 BOOST_STATIC_ASSERT (max_sint8 > 0)
 BOOST_STATIC_ASSERT (sizeof(uint8)==8)
 BOOST_STATIC_ASSERT (min_uint8==0LL)
 BOOST_STATIC_ASSERT (max_uint8 > 0LL)
 BOOST_STATIC_ASSERT (sizeof(sintptr) >=4)
 BOOST_STATIC_ASSERT (sizeof(uintptr) >=4)
sint4 my_round (real4 x)
sint4 mult (sint4 x, sint4 y)
sint8 mult (const sint8 x, const sint8 y)
uint4 square (const uint4 &x)
sint4 square (const sint4 &x)
sint8 square (const sint8 &x)
real4 square (const real4 &x)
real8 square (const real8 &x)
template<class T >
sign (T &x)
template<class T >
std::string to_string (const T &Value)
std::string sanitize_path (const std::string &fp)
 Fix directory separators to match system.
char * alloc_sprintf (const char *fmt,...)
char * alloc_sprintf (const char *fmt, va_list ap)
std::ostream & form (std::ostream &os, const char *fmt,...)
std::ostream & form (std::ostream &os, const char *fmt, va_list ap)
void tokenize (const std::string &str, Vector< std::string > &tokens, const std::string &delimiters=" ")

Variables

const sint1 min_sint1 = 0x80
const sint1 max_sint1 = 0x7F
const uint1 min_uint1 = 0x00
const uint1 max_uint1 = 0xFF
const sint2 min_sint2 = 0x8000
const sint2 max_sint2 = 0x7FFF
const uint2 min_uint2 = 0x0000
const uint2 max_uint2 = 0xFFFF
const sint4 min_sint4 = 0x80000000
const sint4 max_sint4 = 0x7FFFFFFF
const uint4 min_uint4 = 0x00000000
const uint4 max_uint4 = 0xFFFFFFFF
const sint8 min_sint8 = 0x8000000000000000LL
const sint8 max_sint8 = 0x7FFFFFFFFFFFFFFFLL
const uint8 min_uint8 = 0x0000000000000000LL
const uint8 max_uint8 = 0xFFFFFFFFFFFFFFFFLL
bool gdb

Define Documentation

#define ABORT   assert(0==1)

Definition at line 223 of file Global.H.

Referenced by main().

#define chdir   _chdir

Definition at line 158 of file Global.H.

#define ERR (   s)
Value:
{\
  std::stringstream ss; ss << __FILE__ \
  << " () (line " << __LINE__ << "): " << s; \
  errstr << "ERROR: " << ss.str() << std::endl; \
  throw ExitException(std::string(ss.str())); \
}

Definition at line 241 of file Global.H.

#define FAST_ROUND   0

Definition at line 365 of file Global.H.

#define FIND (   cont,
  it,
  elem 
)    typeof(cont.find(elem)) it = cont.find(elem);

Definition at line 220 of file Global.H.

Referenced by SuicideAttackAI::act(), PursueAttack::act(), GatherAI::act(), BaseDefense::act(), ScriptVector::action(), ScriptString::action(), ScriptSet::action(), ScriptModel::action(), ScriptEmitter::action(), GameObj::action(), CWidget::action(), GameObj::action_id(), EventHandlerList::add(), GameObjBlueprint::add_attr(), SimpleTerrain::ST_ForceField::add_move_command(), FFLocPath::add_move_command(), Game::apply_view_diff(), GameObjBlueprint::attr_index(), ScriptObj::BasePtr::BasePtr(), GameObjBlueprint::bind(), GameObjFactory::bp_code(), GameObjFactory::bp_name(), GameObjBlueprint::change_val(), GfxModule::check_static_objects(), GameObj::component(), GameObj::component_index(), GameObjFactory::create(), BaseDefense::del_base(), BaseDefense::del_unit(), PlayerInfo::delete_obj(), ProfileWidget::draw_level(), ProfileWidget::event_mouse_down(), GfxModule::event_mouse_up(), SimpleTerrain::ST_ForceField::execute_tasks(), SimpleTerrain::ST_Terrain::execute_tasks(), FFLocPath::execute_tasks(), FuncTable::find_function(), Protocol::Finger::get(), GameObjFactory::get_blueprint(), SimpleTerrain::BucketFactory::get_bucket(), SimpleTerrain::ST_ForceField::get_forcefield_target(), FFLocPath::get_forcefield_target(), GfxGameObject::get_gfx(), GfxGameObject::get_gob(), PlayerInfo::get_id(), Game::get_meta_tag(), PlayerInfo::get_obj(), ScriptObj::get_obj_id(), BP_AttrNode::get_ptr(), SimpleTerrain::ST_ForceField::get_push_target(), FFLocPath::get_push_target(), PlayerInfo::global_obj(), PlayerInfo::global_var(), GfxModule::GUI_Deselect_obj(), GfxModule::GUI_FlattenTerrain(), GfxModule::GUI_UnFlattenTerrain(), SuicideAttackAI::handle_event(), Simul::SimulationAI::handle_event(), PursueAttack::handle_event(), BSimul::BuildTasksAI::handle_event(), BaseDefense::handle_event(), GatherAI::handlePathStatus(), GfxObject::id2obj(), SimpleTerrain::ST_Terrain::PFEngine::ignore_objects(), ScriptObjSet::invalidate(), TRTerrain::TR_Terrain::invalidate_paths(), SimpleTerrain::ST_Terrain::is_at_goal(), TextureStore::load(), GfxModule::load_sound(), GfxObject::match_id(), PlayerInfo::new_global_var(), GameObjBlueprint::parse_action(), GameObjBlueprint::parse_attr(), GameObjBlueprint::parse_comp(), GameObjBlueprint::parse_inherit(), ScriptParser::parseObjLoop(), GfxModule::process_changes(), SimpleTerrain::ST_Terrain::PFEngine::reconsider_objects(), TextureStore::reload(), ScriptSet::remove(), EventHandlerList::remove(), SimpleTerrain::ST_ForceField::remove_obj(), SimpleTerrain::ST_Terrain::remove_obj(), SimplePathfinder::remove_obj(), FFLocPath::remove_obj(), Environment::remove_object(), TRTerrain::TR_Terrain::remove_task(), SimpleTerrain::ST_ForceField::remove_task(), SimpleTerrain::ST_Terrain::remove_task(), FFLocPath::remove_task(), Server::run(), Game::script_GOB_Cancel_Action(), GameObj::set_action(), PlayerInfo::shared_obj(), SuicideAttackAI::stop(), GatherAI::stop(), BSimul::BuildTasksAI::stop(), TextureStore::unload(), SquadCombatAI::update(), Simul::Task::update(), BaseDefense::update_targets(), PlayerInfo::valid_id(), GfxGameObject::~GfxGameObject(), and GfxObject::~GfxObject().

#define FOR (   i,
 
)    typeof(n) _=(n); for (i=0; i < _; ++i)

Definition at line 168 of file Global.H.

#define FOR_DYN (   i,
 
)    for (i=0; i < (n); ++i)

Definition at line 169 of file Global.H.

#define FORALL (   CONT,
 
)    for (typeof((CONT).begin()) i = (CONT).begin(), _ = (CONT).end(); i != _; ++i)

Definition at line 187 of file Global.H.

Referenced by SimpleTerrain::__assert_object_set_valid(), TurretAI::act(), TerrainModule::act(), SuicideAttackAI::act(), ShooterAI::act(), PursueAttack::act(), GatherAI::act(), BaseDefense::act(), AutoGatherAI::act(), MoveActions::Act(), SimpleActions::Act(), ObjAction::Act(), ObjAction::act_index(), GameObj::action_names(), SuicideAttackAI::add_base(), GameObjBlueprint::add_ext_action(), PathProcessor::add_new_path(), Game::add_script_classes(), TRTerrain::TR_Terrain::add_segments(), SimpleTerrain::ST_ForceField::add_segments(), SimpleTerrain::ST_Terrain::add_segments(), ForceFieldPE::add_segments(), FFLocPath::add_segments(), TerrainBasicImp< TaskWrapper >::add_task(), DB_Player::addBuddy(), DB_Player::addNotify(), AutoGatherAI::allocateMineralPatchFor(), WaterTile::anim(), GameObj::apply_comp_diff(), Game::apply_view_diff(), AutoGatherAI::applyViewMessage(), Decomp::area(), GatherCommander::assessChangesToMinerals(), ClusterSquad::assign_hard(), GfxAnimesh::attachEmitter_tag(), GfxAnimesh::attachGfxObject_tag(), AttackCommander::AttackCommander(), GameObj::attr_names(), PlayerActionHandler::autoAttackAll(), SquadCombatAI::avgEnemyImportance(), GameObjFactory::bind(), Game::bind(), GameObjBlueprint::bind(), MyEventHandler::block_by_obstacles(), PolyGraph::build_graph(), PolyGraph::build_graph_redundant(), PlayerActionHandler::buildAll(), tmanager::buildGameList(), buildGameList(), BaseCommander::buildUnitsInQueue(), ForceFieldPE::calculate_move(), EventHandlerList::call(), Game::can_see_obj(), Decomp::check(), Decomp::Node::check(), ScriptParser::check_redeclaration(), VanishedObjects::check_static_objects(), GfxModule::check_static_objects(), SimpleTerrain::Bucket::check_vector(), Bucket::check_vector(), tmanager::checkComputers(), checkComputers(), Simul::Task::childCompleted(), GatherAI::choose_base(), SquadCombatAI::chooseAttackers(), Simul::SimulationState::cleanup(), CustomShaderProgram::cleanup(), ShaderProgram::cleanup(), VecField::clear(), Environment::clear(), ObjAction::clear(), GameObjBlueprint::clear_action_map(), Environment::clear_air(), PolyGraph::clear_graph(), Environment::clear_id(), Environment::clear_id_air(), GfxModule::collapse_file_path(), Decomp::collect_edges(), comp_enable(), GameObj::component_names(), TR_EventHandler::compute_actions(), SampleEventHandler::compute_actions(), SquadCombatAI::compute_attack(), SquadCombatAI::compute_attack_graph(), MyEventHandler::compute_corridor(), mapTerrain::TerrainMap::compute_free_areas(), SquadCombatAI::compute_influence(), ClusterSquad::compute_mean(), ClusterSquad::compute_means(), SquadCombatAI::compute_occupation(), compute_roundabout(), SquadCombatAI::compute_squad_motion2(), SquadCombatAI::compute_support(), SquadCombatAI::compute_support2(), Game::compute_view(), GatherCommander::computeMineralClusters(), AutoGatherAI::computeMineralClusters(), AutoGatherAI::computePathsAroundClusters(), GatherCommander::computeRoutes(), Decomp::connect_east(), Decomp::connect_north(), Decomp::connect_south(), Decomp::connect_west(), SimpleTerrain::SimpleGlobalPF::consider_rectangles(), GameObj::construct(), GameObj::copy_to_prev(), Decomp::count(), Commander::countObjects(), Commander::countOwned(), DefenseCommander::countRequestable(), RouteAllocator::countWorkersNeeded(), GameObj::dec_enable_count(), BSimul::DEFINE_BTASK(), Simul::DEFINE_TASK(), SuicideAttackAI::del_base(), BaseDefense::del_base(), BaseDefense::del_enemy_unit(), Decomp::delete_edges_to(), Commander::demandUnits(), GameObj::destruct(), dijkstra(), GUI::display(), GUI::display_health_bars(), tmanager::displayGames(), displayGames(), tmanager::displayMatrix(), displayMatrix(), tmanager::displayScores(), displayScores(), SWidget::draw(), SquadCombatAIOverlay::draw(), SimpleTerrain::SimpleTerrainWidget::draw(), SimpleTerrain::SimpleTerrainOverlay::draw(), SimplePathfinderWidget::draw(), SimplePathfinderOverlay::draw(), PWidget::draw(), Octree::draw(), GfxShellEmitter::draw(), GfxFireEmitter::draw(), GfxAnimesh::draw(), draw(), AttractorOverlay::draw(), Octree::draw_culled(), GfxObject::draw_emitters(), GfxPListEmitter::draw_emitters(), GfxCircleEmitter::draw_emitters(), GfxAnimesh::draw_emitters(), ProfileWidget::draw_level(), GfxModule::draw_minimap(), PWidget::draw_path(), Octree::draw_scene(), GfxAnimesh::draw_shadow(), GfxModule::draw_view(), Decomp::dump(), Decomp::east_edge(), Simul::SimulationState::enemyInRange(), BSimul::BuildTasksState::enemyNearBases(), TerrainBasicImp< TaskWrapper >::eraseFromFailed(), TerrainBasicImp< TaskWrapper >::eraseFromPending(), MemberFunctionCall< T >::eval(), ReturnStmt< T >::eval(), QueueAction::eval(), ForAllIntersect::eval(), ForAllType::eval(), ForAllObj::eval(), StaticFunctionCall::eval(), GOB_Component::eval(), Simul::SimulationState::evaluate(), GfxModule::event_mouse_up(), ScoutCommander::exec(), DefenseCommander::exec(), BaseCommander::exec(), AttackCommander::exec(), Game::exec_actions(), TRTerrain::TR_Terrain::execute_tasks(), SimpleTerrain::ST_ForceField::execute_tasks(), SimpleTerrain::ST_Terrain::execute_tasks(), SimplePathfinder::execute_tasks(), PathfinderBasicImp::execute_tasks(), ForceFieldPE::execute_tasks(), FFLocPath::execute_tasks(), Simul::Player::executeOrders(), MyEventHandler::exist(), VecField::field(), BaseDefense::find_base(), MyEventHandler::find_path(), Environment::find_path(), SuicideAttackAI::find_target(), BaseDefense::find_threat(), Simul::SimulationState::findBestStrategy(), AttackCommander::findCentroid(), GfxModule::finish_cwidget(), FileLoader::fopen(), FPS::FPS(), Decomp::free(), Game::Game(), GameObj::GameObj(), Game::gen_action_message(), Game::gen_actions(), Game::gen_client_actions(), GameObj::gen_comp_diff(), ScriptString::gen_diff(), ScriptSet::gen_diff(), Game::gen_view_diffs(), MapTool::generate_game2_map(), MapTool::generate_game4_map(), MapTool::generate_marine_map(), MapTool::generate_skirmish_map(), MyEventHandler::get_adjacent_node(), Game::get_client_world(), MyEventHandler::get_escape_point(), SimpleTerrain::ST_ForceField::get_forcefield_target(), FFLocPath::get_forcefield_target(), ScriptObj::get_ids(), PolyGraph::get_node(), DecompUtil::get_node_id(), PolyGraph::get_nodes(), SimpleTerrain::ST_ForceField::get_push_target(), FFLocPath::get_push_target(), GameObj::get_refs(), Simul::SimulationState::getAverageNearestEnemyUnitOfGroup(), RouteAllocator::getBestRoute(), Simul::SimulationState::getCenterOfObjects(), BSimul::BuildTasksState::getCenterOfObjects(), DB_Player::getData(), Net_Invitation::getidstring(), MapEvalHandler::getImmobileObjectIndex(), Simul::SimulationState::getNearestEnemyBaseOfGroup(), BSimul::BuildTasksState::getNearestEnemyControlCenter(), Simul::SimulationState::getNearestEnemyUnitOfGroup(), BSimul::BuildTasksState::getNearestEnemyWorker(), Simul::SimulationState::getNearestObject(), AttackCommander::getNearestUnit(), Simul::SimulationState::getNextCollisionTime(), Simul::SimulationState::getNextOrderCompletionTime(), RouteAllocator::getNumAvailableRoutes(), Net_Invitation::getPlayerCount(), Simul::SimulationState::getStrategyValue(), Net_Invitation::getTeamCount(), GfxFireEmitter::GfxFireEmitter(), GfxShellEmitter::GfxShellEmitter(), GfxModule::GUI_broadcast(), GfxModule::GUI_CreateView(), GfxModule::GUI_DeleteView(), GfxModule::GUI_LoadBP(), GfxModule::GUI_MarkTiles(), GfxModule::GUI_ResizeView(), GfxModule::GUI_Screen2Obj(), GfxModule::GUI_Set_DBVec(), TerrainModule::handle_event(), SuicideAttackAI::handle_event(), SquadCombatAI::handle_event(), Simul::SimulationAI::handle_event(), PathFinder::handle_event(), GfxEventHandler::handle_event(), MyEventHandler::handle_event(), MapEvalHandler::handle_event(), GatherAI::handle_event(), ClusterSquads::handle_event(), BSimul::BuildTasksAI::handle_event(), BaseDefense::handle_event(), GatherCommander::handleMovementStatus(), Graph_node::has_neighbour(), Simul::SimulationState::hasWon(), SimpleTerrain::ST_Terrain::PFEngine::ignore_objects(), SimpleTerrain::SimpleGlobalPF::ignore_rectangles(), GameObj::inc_enable_count(), Game::inc_magic(), Simul::SimulationAI::informObjectsOfDeath(), BSimul::BuildTasksAI::informObjectsOfDeath(), mapTerrain::TerrainMap::init_blocked_tiles(), Tokenizer::init_cmd_def(), OSL::Context::init_frame(), Game::init_motion_sectors(), Environment::init_sizes(), Decomp::insert(), TR_PFEngine::insert_boundaries(), SimpleTerrain::SimpleGlobalPF::insert_boundaries(), SimpleTerrain::ST_Terrain::PFEngine::Map::insert_bucket(), SimpleTerrain::SimpleGlobalPF::Map::insert_bucket(), Environment::insert_bucket(), SimpleTerrain::ST_Terrain::insert_into_sectors(), PolyGraph::insert_node(), MyEventHandler::insert_segment(), ScriptObjSet::invalidate_obj(), TRTerrain::TR_Terrain::invalidate_paths(), SimpleTerrain::ST_ForceField::invalidate_paths(), SimpleTerrain::ST_Terrain::invalidate_paths(), SimplePathfinder::invalidate_paths(), FFLocPath::invalidate_paths(), SimpleTerrain::SimpleGlobalPF::Map::ir_path(), Simul::SimulationState::isGameOver(), Net_Invitation::joinTeam(), GfxModule::load_interface(), GatherCommander::locateNearbyMinerals(), GameObjFactory::lock(), GameObjBlueprint::lock(), main(), ScriptString::max_line(), Game::move_objects(), GfxModule::move_objects(), PlayerActionHandler::moveAll(), Simul::SimulationState::moveObjects(), BSimul::BuildTasksState::noEnemyInRange(), Decomp::north_edge(), TerrainModule::notify_timp_on_world_changes(), Game::num_intersect(), ScriptString::num_lines(), PlayerInfo::objs(), PlayerCommander::onEvent(), GatherCommander::onLoseUnit(), DefenseCommander::onMovement(), AttackCommander::onMovement(), BaseCommander::onReceiveUnit(), Simul::SimulationState::operator=(), ScriptParser::Parse(), GameObjBlueprint::parse_action(), GameObjBlueprint::parse_inherit(), GatherCommander::performWorkerActions(), SimpleTerrain::ST_Terrain::PFEngine::PFEngine(), GfxAnimesh::pick(), DefenseCommander::pickClosest(), SimpleTerrain::ST_ForceField::plan_failed_task(), SimpleTerrain::ST_ForceField::plan_pending_task(), Simul::Player::Player(), Game::precompute_vision_data(), Game::preprocess_actions(), MyEventHandler::print_decomposition(), PolyGraph::print_graph(), UnitPath::print_path(), stype::print_va_list(), Options::process(), OgreGfxModuleFrameListener::process_changes(), GfxModule::process_changes(), QueueAction::QueueAction(), Game::read_action_block(), Game::read_blueprint_block(), Game::read_header(), Game::read_object_block(), Net_Invitation::readyToStart(), SquadCombatAI::recompute_targets(), ShooterAI::recompute_targets(), SimpleTerrain::ST_Terrain::PFEngine::reconsider_objects(), GameObjFactory::register_blueprint(), GameObjFactory::register_component(), CustomShaderProgram::reload_all(), ShaderProgram::reload_all(), DB_Player::remBuddy(), DB_Player::remNotify(), Octree::remove(), PathProcessor::remove_path(), BSimul::BuildTasksState::removeBarracks(), BSimul::BuildTasksState::removeConCen(), BSimul::BuildTasksState::removeEnemyBase(), BSimul::BuildTasksState::removeEnemyFighter(), BSimul::BuildTasksState::removeEnemyWorker(), BSimul::BuildTasksState::removeFactory(), BSimul::BuildTasksState::removeFighter(), BSimul::BuildTasksState::removeMinerals(), BSimul::BuildTasksState::removeNewBuilding(), SquadCombatAI::removeNode(), Simul::Task::removeObject(), Simul::SimulationState::removeObjectFromVector(), BSimul::BuildTasksState::removeWorker(), DefenseCommander::requestUnits(), IdFactory::reserve(), Options::reset(), SimpleTerrain::ST_Terrain::resolve_friendly_collisions(), Simul::SimulationState::resolveCollisions(), DecompUtil::return_copy(), ReturnStmt< T >::ReturnStmt(), Server::run(), sanitize_path(), GfxModule::save_database(), PlayerActionHandler::scoutAll(), Game::script_close_to(), Game::script_eval(), Game::script_GOB_Footprint(), Game::script_GOB_Get_Comp(), ScriptObjSet::select_add(), GfxModule::select_view(), Net_Service::serve_buddies(), Net_Service::serve_who(), GameObj::set_action(), FrameSet::set_custom(), set_label(), GfxObject::set_offset(), GfxObject::set_pitch(), GfxObject::set_position(), GfxObject::set_rotation(), GfxObject::set_scale(), simple_clustering(), SimpleTerrain::SimpleGlobalPF::SimpleGlobalPF(), Simul::SimulationState::SimulationState(), MyEventHandler::smooth_path(), sound_mixer_callback(), Decomp::south_edge(), SquadCombatAI::spacing_vec(), SimpleActions::spawn_now(), PlayerActionHandler::stopAll(), Simul::SimulationState::subtractVector(), Simul::Task::Task(), BSimul::Task::Task(), Net_Service::tell_worker_info(), Net_Service::tellAll(), Net_Service::tellBuddies(), Handler::tellBuddies(), Decomp::test(), ProfileLevel::tick(), Action::to_string(), SquadCombatAI::unitImportance(), SquadCombatAI::update(), Simul::Task::update(), ShooterAI::update(), PursueAttack::update(), GfxObject::update(), GfxShellEmitter::update(), GfxFireEmitter::update(), GfxAnimesh::update(), Commander::update(), ClusterSquads::update(), ClusterSquad::update(), GfxModule::update_gfxobjs(), GfxModule::update_id_list(), GfxModule::update_layout(), PathFinder::update_paths(), Game::update_pos(), Game::update_sectors(), GfxModule::update_selected(), BaseDefense::update_targets(), SquadCombatAI::update_units(), tmanager::updateGameFile(), updateGameFile(), Simul::SimulationState::updateOrders(), Simul::Player::updateOrders(), Simul::SimulationState::updateStrategies(), Decomp::west_edge(), Options::write(), Decomp::Node::write(), write_delta(), Commander::~Commander(), GameObj::~GameObj(), GameObjFactory::~GameObjFactory(), GatherCommander::~GatherCommander(), GfxObject::~GfxObject(), Simul::Player::~Player(), QueueAction::~QueueAction(), VecField::RectangleEmitter::~RectangleEmitter(), ScriptObj::~ScriptObj(), Server::~Server(), StmtList::~StmtList(), Simul::Task::~Task(), and TCP_Server::~TCP_Server().

#define FORALL_B (   CONT,
 
)
Value:
typeof((CONT).begin()) i = (CONT).begin(); \
  for (typeof((CONT).begin()) _ = (CONT).end(); i != _; ++i) \

Definition at line 196 of file Global.H.

#define FORALL_DYN (   CONT,
 
)    for (typeof((CONT).begin()) i = (CONT).begin(); i != (CONT).end(); ++i)
#define FORALL_NI (   CONT,
 
)    for (typeof((CONT).begin()) i = (CONT).begin(); i != (CONT).end();)

Definition at line 191 of file Global.H.

Referenced by GatherCommander::computeRoutes().

#define FORALL_REV (   CONT,
 
)    for (typeof((CONT).rbegin()) i = (CONT).rbegin(), _ = (CONT).rend(); i != _; ++i)
#define FORALL_REV_B (   CONT,
 
)
Value:
typeof((CONT).rbegin()) i = (CONT).rbegin(); \
  for (typeof((CONT).rbegin()) _ = (CONT).rend(); i != _; ++i)

Definition at line 212 of file Global.H.

Referenced by SimpleTerrain::ST_Terrain::get_future_position(), and Octree::remove().

#define FORALL_REV_DYN (   CONT,
 
)    for (typeof((CONT).rbegin()) i = (CONT).rbegin(); i != (CONT).rend(); ++i)

Definition at line 217 of file Global.H.

#define FOREVER   for (;;)

Definition at line 165 of file Global.H.

#define FORS (   i,
 
)    for (sint4 i=0, _=(n); i < _; ++i)

Definition at line 171 of file Global.H.

Referenced by Frustum::aabox_intersects(), ActionScript::Act(), AI_Board::add_enemies_in_fog(), TRTerrain::TR_Terrain::add_segments(), DualView::alloc(), PartialTileView::alloc(), Game::allocate_vision_memory(), GameObj::apply_comp_diff(), ScriptSet::apply_diff(), Decomp::area(), BoolMatrix::BoolMatrix(), TerrainBlock::build_list(), tmanager::buildGameList(), buildGameList(), Worlded::change_tiles(), Decomp::Node::check(), tmanager::checkComputers(), checkComputers(), ClusterSquad::classify(), Map< Tile >::clear(), SegmentMerge::clear_delta(), Environment::clear_location(), MapTool::cliff_tiles(), Decomp::collect_edges(), TR_EventHandler::compute_actions(), SampleEventHandler::compute_actions(), MyEventHandler::compute_corridor(), GfxTerrainTile::compute_tc(), Game::compute_view(), Game::compute_views(), Game::compute_visibility(), GameObjFactory::create(), Image::createGammaTable(), Game::deallocate_vision_memory(), IO_Buffer::decode(), Map< Tile >::display(), GUI::display(), GUI::display_health_bars(), tmanager::displayMatrix(), SWidget::draw(), SquadCombatAIWidget::draw(), SimpleTerrain::SimpleTerrainWidget::draw(), SimpleTerrain::SimpleTerrainOverlay::draw(), SimpleGlobalPFOverlay::draw(), Octree::draw(), TerrainBlock::draw(), draw(), GfxGameObject::draw_damage(), GfxModule::draw_minimap(), Decomp::dump(), Decomp::E_middle_section(), SWidget::event_key_down(), SimpleTerrain::SimpleTerrainWidget::event_key_down(), Game::exec_actions(), MapView::fill(), Mapgen::finalize_map(), SimpleTerrain::ST_Terrain::find_motion_square(), Decomp::full_E_edge(), Decomp::full_N_edge(), Decomp::full_S_edge(), Decomp::full_W_edge(), Decomp::fully_embedded(), Game::Game(), Game::garbage_collect_objects(), Game::gen_actions(), AI_Client::gen_ai_client_actions(), Game::gen_view_diffs(), Mapgen::generate_basecamp_map(), Game::generate_boundaries(), MapTool::generate_ctf_map(), MapTool::generate_debug_map(), MapTool::generate_frano_map(), MapTool::generate_game1_map(), MapTool::generate_game2_map(), MapTool::generate_game3_map(), MapTool::generate_game4_map(), MapTool::generate_game_tiles(), MapTool::generate_island_map(), Worlded::generate_map(), MapTool::generate_marine_map(), MapTool::generate_maze_map(), Mapgen::generate_obstacle_map(), MapTool::generate_random_cliff_map(), MapTool::generate_random_map(), MapTool::generate_simple_map(), MapTool::generate_skirmish_map(), MapTool::generate_std_map(), GfxTerrain::GfxTerrain(), Game::handle_component(), MyEventHandler::handle_event(), GfxEventHandler::handle_event(), BSimul::BuildTasksAI::handle_event(), Game::inc_magic(), Pathfind< Tile, Object >::init(), MotionSectors::init(), GfxTerrainTile::init(), mapTerrain::TerrainMap::init_blocked_tiles(), Mapgen::init_map(), SimpleTerrain::ST_Terrain::PFEngine::init_sizes(), SimpleTerrain::SimpleGlobalPF::init_sizes(), Environment::init_sizes(), GfxTerrainTile::initverts(), Decomp::insert(), TR_PFEngine::insert_boundaries(), Mat4< T >::invert(), MD2Triangle::little2machine(), MD3_Model::load(), MD2_Model::load(), Map< Tile >::load(), Game::load(), GfxModule::load_interface(), OgreMD3Model::load_tags(), MD3_Model::load_tags(), main(), DualView::make_TileView(), MapView::map_and(), MapView::map_or(), MapView::map_whatsnew(), MapView::MapView(), Game::move_objects(), Decomp::N_middle_section(), Decomp::NE_corner(), TerrainBlock::new_tile(), Decomp::NS_embedded_strip(), Game::num_intersect(), Decomp::NW_corner(), Octree::Octree(), Mat4< T >::operator*(), ScriptParser::Parse(), LayoutHV::parse(), FunctionCall::parse_core(), TerrainBlock::pick(), MapTool::place_players(), Frustum::point_intersects(), populate_resource_loc(), populate_resource_loc_gas(), Game::precompute_vision_data(), BitStrip::print(), TileView::print(), Mat4< real4 >::print(), mapTerrain::TerrainMap::print_map(), OSL::Program::Program(), MapTool::raise_island(), Map< Tile >::read(), MapTool::read_height_map(), Game::remove_tile_boundary(), DecompUtil::return_copy(), Server::run(), Decomp::S_middle_section(), Map< Tile >::save(), Game::save(), GfxModule::save_terrain(), Game::script_close_to(), Game::script_set_tile_type(), Decomp::SE_corner(), SectorDecomp::SectorDecomp(), MD3_Model::select(), set_label(), Decomp_Node_Item::set_node(), SimpleTerrain::ST_Terrain::PFEngine::simple_astar(), SimpleTerrain::SimpleGlobalPF::simple_astar(), Environment::simple_astar(), AI_Client::simulate_plan_step(), sound_mixer_callback(), Frustum::sphere_intersects(), Net_Service::start(), Net_Service::startGame(), MD3_Model::strip(), Decomp::SW_corner(), mapTerrain::TerrainMap::TerrainMap(), Decomp::test(), Replayer::tick(), OptT< T >::to_string(), WaterTile::update(), AI_Board::update_board(), Game::update_sectors(), Minimap::update_texture(), Octree::used(), DualView::view_and(), TileView::view_and(), MapView::view_intersects(), DualView::view_or(), MapView::view_or(), TileView::view_or(), GfxModule::view_to_plane(), Game::visit(), Decomp::W_middle_section(), Decomp::WE_embedded_strip(), Map< Tile >::write(), OSL::Program::write_code(), write_delta(), Octree::~Octree(), TerrainBlock::~TerrainBlock(), and mapTerrain::TerrainMap::~TerrainMap().

#define FORS_DYN (   i,
 
)    for (sint4 i=0; i < (n); ++i)

Definition at line 172 of file Global.H.

#define FORS_REV (   i,
 
)    for (sint4 i=(n)-1; i >= 0; --i)

Definition at line 177 of file Global.H.

Referenced by GfxModule::update_active_view().

#define FORT_DYN (   i,
 
)    for (typeof(n) i=0; i < (n); ++i)

Definition at line 181 of file Global.H.

#define FORU (   i,
 
)    for (uint4 i=0, _=(n); i < _; ++i)

Definition at line 174 of file Global.H.

Referenced by TurretAI::act(), SimpleActions::add(), GfxModule::add_script_functions(), Game::add_watcher(), Game::allocate_vision_memory(), BitStrip::and_strip(), GameObj::apply_comp_diff(), ScriptVector::apply_diff(), ClusterSquad::assign_hard(), GameObjBlueprint::attach_action(), GameObjBlueprint::bind(), GfxModule::build_noise_textures(), MapEvalHandler::clearImmobileObjects(), ClusterSquad::compute_baseline(), MD3_Model::compute_centroid(), Game::compute_footprint(), ClusterSquad::compute_means(), Game::compute_visibility(), GatherCommander::computeMineralClusters(), AutoGatherAI::computeMineralClusters(), AutoGatherAI::computePathsAroundClusters(), Image::copy_rect(), Game::deallocate_vision_memory(), OSL::Parser::del_block(), HeuristicMapWidget::deleteMap(), MD3_Model::draw(), HeuristicMapWidget::draw(), GfxLightningEmitter::draw(), GfxModule::draw(), DrawOnTerrain::draw_circle(), GfxLightningEmitter::draw_line(), MD2_Model::draw_t(), effective_key(), MemberFunctionCall< T >::eval(), AI_Board::eval_normal(), ForStmt::exec(), StmtList::exec(), Game::exec_actions(), AI_Client::execute_current_plan(), MD3_Model::fast_load(), MD3_Model::fast_save(), AI_Client::find_best_mc_plan(), AI_Client::find_best_random_plan(), AI_Client::find_best_randsim_plan(), FileLoader::fixPathString(), Image::flip(), AI_Board::fog_entire_map(), GameObj::GameObj(), Mem::GC(), AI_Client::gen_ai_client_actions(), GameObj::gen_comp_diff(), ScriptVector::gen_diff(), Game::gen_view_diffs(), MapTool::generate_game1_map(), MapTool::generate_game3_map(), MapTool::generate_island_map(), MapTool::generate_marine_map(), MapTool::generate_random_cliff_map(), GameTile::generate_shadows(), MapTool::generate_std_map(), MapTool::generate_tastar_debug_map(), AI_Board::get_nearby_empty_point(), AI_Board::get_nearby_unexplored_point(), AI_Board::get_random_location_in_fog(), OSL::Parser::get_term(), HeuristicMapWidget::getAttributeIndex(), Net_InvitList::getInfoList(), HeuristicMapWidget::getMaxValues(), HeuristicMapWidget::getNearestValues(), Protocol::Worker_Start::getTeamStr(), GfxLightningEmitter::GfxLightningEmitter(), GfxTerrain::GfxTerrain(), MapEvalHandler::handle_event(), OSL::Class::inherit(), OSL::Class::inherit2(), Replayer::init(), MD3_Model_DL::init(), MD2_Model_DL::init(), ClusterSquads::init(), mapTerrain::TerrainMap::init_blocked_tiles(), ScriptEmitter::init_box(), ScriptEmitter::init_circle(), Tokenizer::init_cmd_def(), ScriptEmitter::init_corona(), ScriptEmitter::init_fire(), ScriptEmitter::init_lightning(), OSL::Context::init_run(), ScriptEmitter::init_shell(), SimpleTerrain::ST_Terrain::PFEngine::init_sizes(), SimpleTerrain::SimpleGlobalPF::init_sizes(), ScriptEmitter::init_spray(), GfxModule::initialize_colors(), HeuristicMapWidget::initializeMap(), GfxTerrainTile::initverts(), BitStrip::intersects(), Mat4< T >::invert(), layout(), Object::line_footprint(), MD3Tag::little2machine(), Tile::load(), ServerObjData::load(), PlayerInfo::load(), MD3_Model::load(), MD2_Model::load(), SimpleActions::load(), SActParam::load(), MD3_Model::load_cfg(), Server::load_messages(), Replayer::load_messages(), Model::load_textures(), GameObjBlueprint::lock(), main(), FileArchive::make_archive(), SimpleTerrain::make_unique(), ClusterSquad::match_assignment(), Game::move_objects(), mapTerrain::TerrainMap::move_one_tile(), ScriptSet::op(), BitStrip::operator!=(), BitStrip::operator==(), OSL::Parser::parse_extf_call(), GameObjBlueprint::parse_inherit(), ScriptModel::play_custom(), Net_Service::popFromGameQ(), Game::precompute_vision_data(), Net_InvitList::print(), AI_Board::print(), GfxModule::process_changes(), MapEvalHandler::processChangedObject(), MapEvalHandler::processDeadObject(), MapEvalHandler::processNewObject(), MapEvalHandler::processVanishedObject(), ProfileLevel::ProfileLevel(), FileArchive::read_archive(), read_b_flat4(), Game::read_blueprint_gs(), Game::read_tiledef_block(), Image::readRLE(), Protocol::Worker_Start::recompose(), Server::recv_messages(), GfxPListEmitter::reorder(), AI_Board::reset(), MotionSectors::reset_sizes(), Server::run(), Net_Worker::run(), sanitize_path(), Tile::save(), ServerObjData::save(), SaveLoad::save(), PlayerInfo::save(), Server::save_messages(), Image::saveTGA(), SectorDecomp::SectorDecomp(), MD3_Model::select(), Server::send_messages(), Replayer::send_messages(), Net_Service::serve_invitations(), Net_Service::serve_login(), GameObj::set_action(), Tile::set_flat(), ScriptObj::set_ids(), CustomShaderProgram::Pass::setup(), simple_clustering(), slope_to_index(), slope_to_segment(), GameObjBlueprint::sort_attributes(), Net_Service::startGame(), OSL::Context::step(), strip_white(), Net_Service::tellInvitation(), TerrainBlock::TerrainBlock(), ProfileLevel::tick(), OSL::transform_escapes(), GfxTerrain::uflatten(), SquadCombatAI::update(), GfxLightningEmitter::update(), AI_Board::update_board(), GfxModule::update_layout(), ClusterSquad::update_means(), AI_Board::update_obstacles(), Minimap::update_texture(), MapEvalHandler::updateFogOfWarMap(), AI_Board::validate_entire_map(), GfxModule::view_to_plane(), WaterTile::WaterTile(), write_b_flat4(), ScriptObjSet::~ScriptObjSet(), PlayerInfo::SharedInfo::~SharedInfo(), SquadCombatAI::~SquadCombatAI(), and StmtList::~StmtList().

#define FORU_DYN (   i,
 
)    for (uint4 i=0; i < (n); ++i)
#define getcwd   _getcwd

Definition at line 157 of file Global.H.

#define M_1_PI   0.31830988618379067154

Definition at line 138 of file Global.H.

Referenced by GameConst::encode_dir().

#define M_2_PI   0.63661977236758134308

Definition at line 139 of file Global.H.

#define M_PI_2   1.57079632679489661923

Definition at line 136 of file Global.H.

#define M_PI_4   0.78539816339744830962

Definition at line 137 of file Global.H.

#define M_SQRT1_2   0.70710678118654752440

Definition at line 141 of file Global.H.

#define M_SQRT2   1.41421356237309504880

Definition at line 140 of file Global.H.

#define NO_OVERLAP (   p,
  q,
 
)    assert((p)+(n) <= (q) || (p) >= (q)+(n));
#define PACKED_STRUCT

Definition at line 132 of file Global.H.

#define REM (   x)    errstr << "REMARK: " << x << std::endl;

Definition at line 257 of file Global.H.

Referenced by Net_InvitList::add(), Game::apply_view_diff(), Net_Invitation::banPlayer(), GameObjBlueprint::bind(), TCP_Server::close(), TCP_Client::close(), SoundMixer::close(), GameStateModule::connect(), dispatch(), GfxModule::event_mouse_up(), Game::exec_actions(), MapTool::generate_game1_map(), MapTool::generate_game2_map(), MapTool::generate_game3_map(), MapTool::generate_game4_map(), MapTool::generate_skirmish_map(), MapTool::generate_std_map(), MapTool::generate_tastar_debug_map(), Handler::GGSlogin(), GfxModule::GUI_broadcast(), Handler::handle_added(), TCP_Server::handle_connection(), SquadCombatAI::handle_event(), PursueAttack::handle_event(), PathFinder::handle_event(), Net_Worker::handle_event(), GatherAI::handle_event(), Handler::handle_game_info(), Handler::handle_game_start(), Handler::handle_invitations(), Handler::handle_joined(), Handler::handle_left(), Handler::handle_playerList(), Handler::handle_removed(), Handler::handle_whoList(), IO_Buffer::i_delay_loop(), ViewReplayer::init(), TCP_Server::init_listen(), GfxModule::load(), OgreMD3Model::load_cfg(), MD3_Model::load_cfg(), Server::load_messages(), Replayer::load_messages(), Handler::login(), Net_GGSClient_Listen_loop(), GfxModule::pick(), Text_IO_Buffer::probing_blocking_read(), Text_IO_Buffer::read(), Text_IO_Buffer::read_loop(), IO_Buffer::read_loop(), GameStateModule::recv_view(), Server::run(), Net_Worker::run(), Net_Worker::system_output(), Text_IO_Buffer::Text_IO_Buffer(), ViewReplayer::tick(), Text_IO_Buffer::write_loop(), IO_Buffer::write_loop(), IO_Buffer::~IO_Buffer(), Net_GGSClient::~Net_GGSClient(), Net_Message::~Net_Message(), and Text_IO_Buffer::~Text_IO_Buffer().

#define rint (   x)    int(real4(x)+0.5)

Definition at line 131 of file Global.H.

Referenced by main(), and my_round().

#define ROUND_REAL8_TO_SINT4 (   in,
  out 
)    out = (int)rint(in)

Definition at line 366 of file Global.H.

Referenced by FixedPoint::from_real8().

#define srand48 (   n)    srand((n))

Definition at line 142 of file Global.H.

Referenced by Game::Game(), and main().


Typedef Documentation

typedef const char* ccptr

Definition at line 53 of file Global.H.

typedef const char* const ccptrc

Definition at line 56 of file Global.H.

typedef char* cptr

Definition at line 50 of file Global.H.

typedef const void* cvptr

Definition at line 52 of file Global.H.

typedef const void* const cvptrc

Definition at line 55 of file Global.H.

typedef float real4

Definition at line 45 of file Global.H.

typedef double real8

Definition at line 46 of file Global.H.

typedef long double realC

Definition at line 47 of file Global.H.

typedef int8_t sint1

Definition at line 15 of file Global.H.

typedef int16_t sint2

Definition at line 17 of file Global.H.

typedef int32_t sint4

Definition at line 19 of file Global.H.

typedef int64_t sint8

Definition at line 21 of file Global.H.

typedef intptr_t sintptr

Definition at line 24 of file Global.H.

typedef uint8_t uint1

Definition at line 16 of file Global.H.

typedef uint16_t uint2

Definition at line 18 of file Global.H.

typedef uint32_t uint4

Definition at line 20 of file Global.H.

typedef uint64_t uint8

Definition at line 22 of file Global.H.

typedef uintptr_t uintptr

Definition at line 25 of file Global.H.

typedef void* vptr

Definition at line 49 of file Global.H.


Function Documentation

char* alloc_sprintf ( const char *  fmt,
  ... 
)

Definition at line 49 of file Global.C.

References alloc_sprintf().

Referenced by alloc_sprintf(), and form().

char* alloc_sprintf ( const char *  fmt,
va_list  ap 
)

Definition at line 58 of file Global.C.

References size.

BOOST_STATIC_ASSERT ( sizeof(sint1 = =1)
BOOST_STATIC_ASSERT ( sizeof(uint1 = =1)
BOOST_STATIC_ASSERT ( max_sint8  ,
 
)
BOOST_STATIC_ASSERT ( max_uint4  ,
 
)
BOOST_STATIC_ASSERT ( max_sint2  ,
 
)
BOOST_STATIC_ASSERT ( sizeof(sint8 = =8)
BOOST_STATIC_ASSERT ( )
BOOST_STATIC_ASSERT ( sizeof(uint2 = =2)
BOOST_STATIC_ASSERT ( sizeof(uint8 = =8)
BOOST_STATIC_ASSERT ( min_uint1  = =0)
BOOST_STATIC_ASSERT ( min_uint2  = =0)
BOOST_STATIC_ASSERT ( min_uint8  = =0LL)
BOOST_STATIC_ASSERT ( max_uint8  ,
0LL   
)
BOOST_STATIC_ASSERT ( max_uint2  ,
 
)
BOOST_STATIC_ASSERT ( sizeof(sintptr) >=  4)
BOOST_STATIC_ASSERT ( sizeof(uintptr) >=  4)
BOOST_STATIC_ASSERT ( max_sint1  ,
 
)
BOOST_STATIC_ASSERT ( max_uint1  ,
 
)
BOOST_STATIC_ASSERT ( sizeof(sint4 = =4)
BOOST_STATIC_ASSERT ( max_sint4  ,
 
)
BOOST_STATIC_ASSERT ( sizeof(sint2 = =2)
BOOST_STATIC_ASSERT ( sizeof(uint4 = =4)
BOOST_STATIC_ASSERT ( min_uint4  = =0)
std::ostream& form ( std::ostream &  os,
const char *  fmt,
va_list  ap 
)

Definition at line 104 of file Global.C.

References alloc_sprintf(), and ERR.

std::ostream& form ( std::ostream &  os,
const char *  fmt,
  ... 
)
sint8 mult ( const sint8  x,
const sint8  y 
) [inline]

Definition at line 270 of file Global.H.

References assert().

sint4 my_round ( real4  x) [inline]

Definition at line 260 of file Global.H.

References rint.

Referenced by GfxModule::move_objects(), and Server::run().

template<class T >
T sign ( T &  x)

Definition at line 303 of file Global.H.

Referenced by kmRanLaplace().

sint4 square ( const sint4 x) [inline]

Definition at line 281 of file Global.H.

References assert().

real8 square ( const real8 x) [inline]

Definition at line 298 of file Global.H.

References assert().

sint8 square ( const sint8 x) [inline]

Definition at line 286 of file Global.H.

References assert().

real4 square ( const real4 x) [inline]

Definition at line 293 of file Global.H.

References assert().

void tokenize ( const std::string &  str,
Vector< std::string > &  tokens,
const std::string &  delimiters = " " 
)

Definition at line 114 of file Global.C.

References FOREVER.

Referenced by Server::run().


Variable Documentation

bool gdb

Definition at line 9 of file Global.C.

const sint1 max_sint1 = 0x7F

Definition at line 59 of file Global.H.

Referenced by OSL::Parser::valid_sint1().

const sint2 max_sint2 = 0x7FFF

Definition at line 63 of file Global.H.

Referenced by sound_mixer_callback(), and OSL::Parser::valid_sint2().

const sint8 max_sint8 = 0x7FFFFFFFFFFFFFFFLL

Definition at line 71 of file Global.H.

Referenced by OSL::Parser::valid_sint8().

const uint1 max_uint1 = 0xFF

Definition at line 61 of file Global.H.

Referenced by OSL::Parser::valid_uint1().

const uint2 max_uint2 = 0xFFFF

Definition at line 65 of file Global.H.

Referenced by OSL::Parser::valid_uint2().

const uint8 max_uint8 = 0xFFFFFFFFFFFFFFFFLL

Definition at line 73 of file Global.H.

Referenced by OSL::Parser::valid_uint8().

const sint1 min_sint1 = 0x80

Definition at line 58 of file Global.H.

Referenced by OSL::Parser::valid_sint1().

const sint2 min_sint2 = 0x8000

Definition at line 62 of file Global.H.

Referenced by sound_mixer_callback(), and OSL::Parser::valid_sint2().

const sint8 min_sint8 = 0x8000000000000000LL

Definition at line 70 of file Global.H.

Referenced by OSL::Parser::valid_sint8().

const uint1 min_uint1 = 0x00

Definition at line 60 of file Global.H.

Referenced by OSL::Parser::valid_uint1().

const uint2 min_uint2 = 0x0000

Definition at line 64 of file Global.H.

Referenced by OSL::Parser::valid_uint2().

const uint4 min_uint4 = 0x00000000

Definition at line 68 of file Global.H.

Referenced by OSL::Parser::valid_uint4().

const uint8 min_uint8 = 0x0000000000000000LL

Definition at line 72 of file Global.H.

Referenced by OSL::Parser::valid_uint8().


Generated on Fri May 18 2012 03:02:53 for ORTS by Doxygen1.7.3