U8Game Class Reference

#include <U8Game.h>

Inheritance diagram for U8Game:

Game List of all members.

Public Member Functions

 U8Game ()
virtual ~U8Game ()
virtual bool loadFiles ()
virtual bool startGame ()
virtual bool startInitialUsecode ()
virtual void writeSaveInfo (ODataSource *ods)
virtual ProcId playIntroMovie ()
virtual ProcId playEndgameMovie ()
virtual void playCredits ()
virtual void playQuotes ()

Static Public Member Functions

static void ConCmd_cheatItems (const Console::ArgvType &argv)
static void ConCmd_cheatEquip (const Console::ArgvType &argv)

Protected Member Functions

std::string getCreditText (IDataSource *ids)

Detailed Description

Definition at line 26 of file U8Game.h.


Constructor & Destructor Documentation

U8Game::U8Game (  ) 

Definition at line 43 of file U8Game.cpp.

References Console::AddConsoleCommand(), con, ConCmd_cheatEquip(), ConCmd_cheatItems(), GameInfo::GAMELANG_JAPANESE, GUIApp::get_instance(), SettingManager::get_instance(), CoreApp::getGameInfo(), GameInfo::language, and SettingManager::setDefault().

U8Game::~U8Game (  )  [virtual]

Definition at line 65 of file U8Game.cpp.

References con, ConCmd_cheatEquip(), ConCmd_cheatItems(), and Console::RemoveConsoleCommand().


Member Function Documentation

void U8Game::ConCmd_cheatEquip ( const Console::ArgvType argv  )  [static]

Definition at line 295 of file U8Game.cpp.

References ItemFactory::createItem(), getContainer(), Actor::getEquip(), getItem(), getMainActor(), Item::moveToContainer(), and Actor::setEquip().

Referenced by U8Game(), and ~U8Game().

void U8Game::ConCmd_cheatItems ( const Console::ArgvType argv  )  [static]

Definition at line 151 of file U8Game.cpp.

References ItemFactory::createItem(), getContainer(), Actor::getEquip(), getMainActor(), Item::moveToContainer(), Item::randomGumpLocation(), and Item::setGumpLocation().

Referenced by U8Game(), and ~U8Game().

std::string U8Game::getCreditText ( IDataSource ids  )  [protected]

Definition at line 481 of file U8Game.cpp.

References IDataSource::getSize(), IDataSource::read1(), and x.

Referenced by playCredits(), and playQuotes().

bool U8Game::loadFiles (  )  [virtual]

load/init game's data files

Implements Game.

Definition at line 71 of file U8Game.cpp.

References GameData::get_instance(), PaletteManager::get_instance(), FileSystem::get_instance(), PaletteManager::load(), GameData::loadU8Data(), PaletteManager::Pal_Game, perr, pout, FileSystem::ReadFile(), IDataSource::seek(), and U8XFormPal.

void U8Game::playCredits (  )  [virtual]

Implements Game.

Definition at line 387 of file U8Game.cpp.

References Gump::CENTER, MusicProcess::get_instance(), FileSystem::get_instance(), CoreApp::get_instance(), getCreditText(), CoreApp::getGameInfo(), GameInfo::getLanguageFileLetter(), CreditsGump::InitGump(), perr, MusicProcess::playMusic(), FileSystem::ReadFile(), CreditsGump::SetFlagWhenFinished(), and Gump::setRelativePosition().

ProcId U8Game::playEndgameMovie (  )  [virtual]

Implements Game.

Definition at line 373 of file U8Game.cpp.

References FileSystem::get_instance(), pout, FileSystem::ReadFile(), and MovieGump::U8MovieViewer().

ProcId U8Game::playIntroMovie (  )  [virtual]

Implements Game.

Definition at line 349 of file U8Game.cpp.

References FileSystem::get_instance(), CoreApp::get_instance(), CoreApp::getGameInfo(), GameInfo::getLanguageFileLetter(), perr, pout, FileSystem::ReadFile(), and MovieGump::U8MovieViewer().

void U8Game::playQuotes (  )  [virtual]

Implements Game.

Definition at line 417 of file U8Game.cpp.

References Gump::CENTER, MusicProcess::get_instance(), FileSystem::get_instance(), getCreditText(), Gump::InitGump(), perr, MusicProcess::playMusic(), FileSystem::ReadFile(), and Gump::setRelativePosition().

bool U8Game::startGame (  )  [virtual]

initialize new game

Implements Game.

Definition at line 92 of file U8Game.cpp.

References ItemFactory::createItem(), GUIApp::get_instance(), World::get_instance(), FileSystem::get_instance(), ObjectManager::get_instance(), ArchiveFile::getDataSource(), getMainActor(), Item::getMapNum(), World::loadItemCachNPCData(), World::loadNonFixed(), Item::moveToContainer(), perr, pout, FileSystem::ReadFile(), ObjectManager::reserveObjId(), GUIApp::setAvatarInStasis(), MainActor::setName(), and World::switchMap().

bool U8Game::startInitialUsecode (  )  [virtual]

start initial usecode

Implements Game.

Definition at line 340 of file U8Game.cpp.

References Kernel::addProcess(), and Kernel::get_instance().

void U8Game::writeSaveInfo ( ODataSource ods  )  [virtual]

write game-specific savegame info (avatar stats, equipment, ...)

Implements Game.

Definition at line 439 of file U8Game.cpp.

References MainActor::getArmourClass(), Actor::getDex(), Actor::getEquip(), Item::getFrame(), Actor::getHP(), Actor::getInt(), getItem(), Item::getLocation(), getMainActor(), Actor::getMana(), Item::getMapNum(), Actor::getMaxHP(), Actor::getMaxMana(), MainActor::getName(), Item::getShape(), Actor::getStr(), Container::getTotalWeight(), ODataSource::write1(), ODataSource::write2(), ODataSource::write4(), x, and y.


The documentation for this class was generated from the following files:
Generated on Fri Jul 27 22:30:05 2007 for pentagram by  doxygen 1.4.7