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 18 of file AssetsManager.cpp.
References archetypeUpdated(), Animations::faces, AssetsCollection< T, Key >::get(), m_animations, m_archetypes, m_faces, m_listener, and Archetypes::setReplaceListener().
|
virtual |
Destructor.
Definition at line 28 of file AssetsManager.cpp.
References Archetypes::clearReplaceListener(), and m_archetypes.
|
inline |
Get animations.
Definition at line 49 of file AssetsManager.h.
References m_animations.
Referenced by assets_collect(), assets_pack(), dump_animations(), find_animation(), malloc_info(), and try_find_animation().
|
inline |
Get archetypes.
Definition at line 44 of file AssetsManager.h.
References m_archetypes.
Referenced by ArchetypesWrapper::addArchetype(), addArchetypes(), ArchetypeComboBox::ArchetypeComboBox(), archetypes_for_each(), ArchetypesModel::ArchetypesModel(), ResourcesManager::archetypeUse(), ArtifactPanel::artifactChanged(), assets_collect(), assets_finish_archetypes_for_play(), assets_pack(), CREMapInformationManager::browseMaps(), build_class_list_reply(), build_race_list_reply(), MonsterResistances::buildGraph(), cfapi_system_get_archetype_vector(), check_generators(), check_spells(), check_summoned(), create_archetype_by_object_name(), dump_abilities(), dump_all_archetypes(), dump_monster_treasure(), dump_spells(), 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(), get_player_archetype(), get_spell_by_name(), isValidArchFlesh(), malloc_info(), CREMainWindow::onReportAlchemy(), CREMainWindow::onReportAlchemyGraph(), CREMainWindow::onReportArchetypes(), CREMainWindow::onReportDuplicate(), CREMainWindow::onReportPlayer(), CREMainWindow::onReportSpellDamage(), CREMainWindow::onReportSpells(), CREMainWindow::onReportSummon(), polymorph_item(), polymorph_living(), print_monsters(), recipe_find_ingredient_cost(), send_map_info(), SoundsDialog::soundType(), spellsTable(), START_TEST(), try_find_archetype(), and RecipePanel::updateItem().
Update artifacts if needed when an archetype changes.
existing | archetype being changed. |
update | new values of the archetype. |
Definition at line 32 of file AssetsManager.cpp.
References first_artifactlist, 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 52 of file AssetsManager.cpp.
References disinfect::count, dump(), m_animations, m_archetypes, m_facesets, m_quests, m_treasures, and AssetsCollection< T, Key >::undefined().
|
inline |
Get faces.
Definition at line 39 of file AssetsManager.h.
References m_faces.
Referenced by CREResourcesWindow::addQuest(), assets_collect(), assets_pack(), dump_faces(), FaceComboBox::FaceComboBox(), faces_for_each(), find_face(), get_face_by_id(), get_faces_count(), FaceMakerDialog::makeFaces(), CREMainWindow::onReportLicenses(), pack_images(), try_find_face(), FacesetsPanel::updateItem(), and ArchetypeWrapper::uses().
|
inline |
Get facesets.
Definition at line 65 of file AssetsManager.h.
References m_facesets.
Referenced by assets_collect(), assets_pack(), CREMainWindow::fillFacesets(), find_faceset(), CREPixmap::init(), CREMainWindow::onReportLicenses(), pack_images(), send_image_info(), CREPixmap::setFaceset(), and START_TEST().
|
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 msgfile_msg().
|
inline |
Get quests.
Definition at line 71 of file AssetsManager.h.
References m_quests.
Referenced by QuestsWrapper::addQuest(), CREResourcesWindow::addQuest(), assets_collect(), assets_pack(), CRESubItemQuest::CRESubItemQuest(), CREMainWindow::onReportQuests(), quest_for_each(), quest_get_by_code(), QuestComboBox::QuestComboBox(), 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 |
Definition at line 84 of file AssetsManager.h.
Referenced by animations(), AssetsManager(), and dumpUndefined().
|
protected |
Definition at line 82 of file AssetsManager.h.
Referenced by archetypes(), AssetsManager(), dumpUndefined(), and ~AssetsManager().
|
protected |
|
protected |
Cilent image variants.
Definition at line 87 of file AssetsManager.h.
Referenced by dumpUndefined(), and facesets().
|
protected |
Listener to archetypes changes.
Definition at line 83 of file AssetsManager.h.
Referenced by AssetsManager().
|
protected |
|
protected |
|
protected |
Definition at line 85 of file AssetsManager.h.
Referenced by dumpUndefined(), and treasures().