Crossfire Server, Trunk
|
#include <AssetsManager.h>
Public Member Functions | |
AllAnimations * | animations () |
Archetypes * | archetypes () |
AssetsManager () | |
size_t | dumpUndefined () |
Faces * | faces () |
Facesets * | facesets () |
Messages * | messages () |
Quests * | quests () |
Treasures * | treasures () |
virtual | ~AssetsManager () |
Protected Member Functions | |
void | archetypeUpdated (archetype *existing, archetype *update) |
Represents all assets of the game. It will listen to archetype changes to correctly update artifacts if needed.
Definition at line 28 of file AssetsManager.h.
AssetsManager::AssetsManager | ( | ) |
Constructor.
Definition at line 20 of file AssetsManager.cpp.
References archetypeUpdated(), animations_struct::faces, AssetsCollection< T, Key >::get(), m_animations, m_archetypes, m_faces, m_listener, and Archetypes::setReplaceListener().
|
virtual |
Destructor.
Definition at line 30 of file AssetsManager.cpp.
References AssetsCollection< T, Key >::clear(), Archetypes::clearReplaceListener(), m_animations, m_archetypes, m_faces, m_facesets, m_messages, m_quests, and m_treasures.
|
inline |
Get animations.
Definition at line 49 of file AssetsManager.h.
References m_animations.
Referenced by animations_for_each(), assets_collect(), assets_number_of_animations(), assets_pack(), find_animation(), and try_find_animation().
|
inline |
Get archetypes.
Definition at line 44 of file AssetsManager.h.
References m_archetypes.
Referenced by addArchetypes(), ArchetypeComboBox::ArchetypeComboBox(), archetypes_for_each(), ArchetypesModel::ArchetypesModel(), ArchetypesWrapper::ArchetypesWrapper(), ResourcesManager::archetypeUse(), ArtifactPanel::artifactChanged(), assets_collect(), assets_finish_archetypes_for_play(), assets_number_of_archetypes(), assets_pack(), CREMapInformationManager::browseMaps(), MonsterResistances::buildGraph(), check_generators(), check_spells(), check_summoned(), create_archetype_by_object_name(), fillEvents(), find_archetype(), find_archetype_by_object_name(), find_archetype_by_object_type_name(), finish_races(), get_archetype_by_skill_name(), get_archetype_by_type_subtype(), get_next_archetype(), isValidArchFlesh(), CREMainWindow::onReportAlchemy(), CREMainWindow::onReportAlchemyGraph(), CREMainWindow::onReportArchetypes(), CREMainWindow::onReportDuplicate(), CREMainWindow::onReportPlayer(), CREMainWindow::onReportSpellDamage(), CREMainWindow::onReportSpells(), CREMainWindow::onReportSummon(), recipe_find_ingredient_cost(), RecipePanel::setItem(), CRETreasurePanel::setItem(), spellsTable(), and try_find_archetype().
Update artifacts if needed when an archetype changes.
existing | archetype being changed. |
update | new values of the archetype. |
Definition at line 41 of file AssetsManager.cpp.
References first_artifactlist, artifactliststruct::items, and Archetypes::recursive_update().
Referenced by AssetsManager().
size_t AssetsManager::dumpUndefined | ( | ) |
Dump through LOG undefined assets (except faces), and return the total number of referenced but not defined assets (except faces).
Definition at line 65 of file AssetsManager.cpp.
References disinfect::count, dump(), m_animations, m_archetypes, m_facesets, m_quests, m_treasures, and AssetsCollection< T, Key >::undefined().
Referenced by assets_dump_undefined().
|
inline |
Get faces.
Definition at line 39 of file AssetsManager.h.
References m_faces.
Referenced by CREResourcesWindow::addQuest(), assets_collect(), assets_pack(), FaceComboBox::FaceComboBox(), faces_for_each(), find_face(), get_bitmap_checksum(), get_face_by_id(), get_faces_count(), FaceMakerDialog::makeFaces(), CREMainWindow::onReportLicenses(), pack_images(), FacesetsPanel::setItem(), try_find_face(), and ArchetypeWrapper::uses().
|
inline |
Get facesets.
Definition at line 65 of file AssetsManager.h.
References m_facesets.
Referenced by assets_collect(), assets_pack(), facesets_for_each(), CREMainWindow::fillFacesets(), find_faceset(), CREPixmap::init(), CREMainWindow::onReportLicenses(), pack_images(), and CREPixmap::setFaceset().
|
inline |
Get messages.
Definition at line 59 of file AssetsManager.h.
References m_messages.
Referenced by assets_collect(), assets_pack(), get_message_from_identifier(), and get_random_message().
|
inline |
Get quests.
Definition at line 71 of file AssetsManager.h.
References m_quests.
Referenced by CREResourcesWindow::addQuest(), assets_collect(), assets_pack(), CREQuestPanel::commitData(), CREQuestPanel::CREQuestPanel(), CRESubItemQuest::CRESubItemQuest(), CREMainWindow::onReportQuests(), quest_for_each(), quest_get_by_code(), quests_count(), and CRESubItemQuest::selectedQuestChanged().
|
inline |
Get treasures.
Definition at line 54 of file AssetsManager.h.
References m_treasures.
Referenced by ArchetypeWrapper::appearsOnTreasureList(), ResourcesManager::archetypeUse(), assets_collect(), assets_end_load(), assets_number_of_treasurelists(), assets_pack(), TreasureWrapper::displayIcon(), find_treasurelist(), treasureContains(), and TreasureListComboBox::TreasureListComboBox().
|
protected |
Animations.
Definition at line 84 of file AssetsManager.h.
Referenced by animations(), AssetsManager(), dumpUndefined(), and ~AssetsManager().
|
protected |
Definition at line 82 of file AssetsManager.h.
Referenced by archetypes(), AssetsManager(), dumpUndefined(), and ~AssetsManager().
|
protected |
Definition at line 81 of file AssetsManager.h.
Referenced by AssetsManager(), faces(), and ~AssetsManager().
|
protected |
Cilent image variants.
Definition at line 87 of file AssetsManager.h.
Referenced by dumpUndefined(), facesets(), and ~AssetsManager().
|
protected |
Listener to archetypes changes.
Definition at line 83 of file AssetsManager.h.
Referenced by AssetsManager().
|
protected |
Definition at line 86 of file AssetsManager.h.
Referenced by messages(), and ~AssetsManager().
|
protected |
Definition at line 88 of file AssetsManager.h.
Referenced by dumpUndefined(), quests(), and ~AssetsManager().
|
protected |
Definition at line 85 of file AssetsManager.h.
Referenced by dumpUndefined(), treasures(), and ~AssetsManager().