Crossfire Server, Trunk
R22047
|
#include <AssetsManager.h>
Public Member Functions | |
AllAnimations * | animations () |
Archetypes * | archetypes () |
AssetsManager () | |
size_t | dumpUndefined () |
Faces * | faces () |
Facesets * | facesets () |
Messages * | messages () |
Treasures * | treasures () |
virtual | ~AssetsManager () |
Protected Member Functions | |
void | archetypeUpdated (archetype *existing, archetype *update) |
Protected Attributes | |
AllAnimations | m_animations |
Archetypes | m_archetypes |
Faces | m_faces |
Facesets | m_facesets |
Archetypes::updateListener | m_listener |
Messages | m_messages |
Treasures | m_treasures |
Represents all assets of the game. It will listen to archetype changes to correctly update artifacts if needed.
Definition at line 27 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, and m_treasures.
|
inline |
Get animations.
Definition at line 48 of file AssetsManager.h.
References m_animations.
Referenced by animations_for_each(), assets_collect(), assets_number_of_animations(), assets_pack(), CREResourcesWindow::fillAnimations(), find_animation(), CREMainWindow::onReportDuplicate(), CREFacePanel::setItem(), and try_find_animation().
|
inline |
Get archetypes.
Definition at line 43 of file AssetsManager.h.
References m_archetypes.
Referenced by addArchetypes(), archetypes_for_each(), ArchetypesModel::ArchetypesModel(), ResourcesManager::archetypeUse(), assets_collect(), assets_finish_archetypes_for_play(), assets_number_of_archetypes(), assets_pack(), check_generators(), check_spells(), check_summoned(), create_archetype_by_object_name(), CREResourcesWindow::fillArchetypes(), 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(), CREMainWindow::onReportAlchemyGraph(), CREMainWindow::onReportArchetypes(), CREMainWindow::onReportDuplicate(), recipe_find_ingredient_cost(), CREFacePanel::setItem(), CRETreasurePanel::setItem(), CREAnimationPanel::setItem(), and try_find_archetype().
|
protected |
Update artifacts if needed when an archetype changes.
existing | archetype being changed. |
update | new values of the archetype. |
Definition at line 40 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 64 of file AssetsManager.cpp.
References dump(), m_animations, m_archetypes, m_facesets, m_treasures, and AssetsCollection< T, Key >::undefined().
Referenced by assets_dump_undefined(), and facesets().
|
inline |
Get faces.
Definition at line 38 of file AssetsManager.h.
References m_faces.
Referenced by assets_collect(), assets_pack(), faces_for_each(), CREResourcesWindow::fillFaces(), CREResourcesWindow::fillQuests(), find_face(), get_bitmap_checksum(), get_face_by_id(), get_faces_count(), FaceMakerDialog::makeFaces(), CREMainWindow::onReportDuplicate(), pack_images(), CRETreeItemQuest::questModified(), CREFacePanel::setItem(), and try_find_face().
|
inline |
Get facesets.
Definition at line 64 of file AssetsManager.h.
References dumpUndefined(), and m_facesets.
Referenced by assets_pack(), facesets_for_each(), find_faceset(), CREPixmap::init(), FacesetLoader::load(), PngLoader::load(), and pack_images().
|
inline |
Get messages.
Definition at line 58 of file AssetsManager.h.
References m_messages.
Referenced by assets_collect(), assets_pack(), CREResourcesWindow::fillGeneralMessages(), get_message_from_identifier(), get_random_message(), and CREFacePanel::setItem().
|
inline |
Get treasures.
Definition at line 53 of file AssetsManager.h.
References m_treasures.
Referenced by ResourcesManager::archetypeUse(), assets_collect(), assets_end_load(), assets_number_of_treasurelists(), assets_pack(), CREResourcesWindow::fillTreasures(), find_treasurelist(), and CRETreasurePanel::setItem().
|
protected |
Animations.
Definition at line 77 of file AssetsManager.h.
Referenced by animations(), AssetsManager(), dumpUndefined(), and ~AssetsManager().
|
protected |
Definition at line 75 of file AssetsManager.h.
Referenced by archetypes(), AssetsManager(), dumpUndefined(), and ~AssetsManager().
|
protected |
Definition at line 74 of file AssetsManager.h.
Referenced by AssetsManager(), faces(), and ~AssetsManager().
|
protected |
Cilent image variants.
Definition at line 80 of file AssetsManager.h.
Referenced by dumpUndefined(), facesets(), and ~AssetsManager().
|
protected |
Listener to archetypes changes.
Definition at line 76 of file AssetsManager.h.
Referenced by AssetsManager().
|
protected |
Definition at line 79 of file AssetsManager.h.
Referenced by messages(), and ~AssetsManager().
|
protected |
Definition at line 78 of file AssetsManager.h.
Referenced by dumpUndefined(), treasures(), and ~AssetsManager().