Crossfire Server, Trunk
AssetsManager Class Reference

#include <AssetsManager.h>

+ Collaboration diagram for AssetsManager:

Public Member Functions

AllAnimationsanimations ()
 
Archetypesarchetypes ()
 
 AssetsManager ()
 
size_t dumpUndefined ()
 
Facesfaces ()
 
Facesetsfacesets ()
 
Messagesmessages ()
 
Questsquests ()
 
Treasurestreasures ()
 
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
 
Quests m_quests
 
Treasures m_treasures
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ AssetsManager()

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().

+ Here is the call graph for this function:

◆ ~AssetsManager()

AssetsManager::~AssetsManager ( )
virtual

Destructor.

Definition at line 28 of file AssetsManager.cpp.

References Archetypes::clearReplaceListener(), and m_archetypes.

+ Here is the call graph for this function:

Member Function Documentation

◆ animations()

AllAnimations* AssetsManager::animations ( )
inline

Get animations.

Returns
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().

+ Here is the caller graph for this function:

◆ archetypes()

Archetypes* AssetsManager::archetypes ( )
inline

Get archetypes.

Returns
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().

◆ archetypeUpdated()

void AssetsManager::archetypeUpdated ( archetype existing,
archetype update 
)
protected

Update artifacts if needed when an archetype changes.

Parameters
existingarchetype being changed.
updatenew values of the archetype.

Definition at line 32 of file AssetsManager.cpp.

References first_artifactlist, and Archetypes::recursive_update().

Referenced by AssetsManager().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ dumpUndefined()

size_t AssetsManager::dumpUndefined ( )

Dump through LOG undefined assets (except faces), and return the total number of referenced but not defined assets (except faces).

Returns
count of undefined assets.

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().

+ Here is the call graph for this function:

◆ faces()

◆ facesets()

Facesets* AssetsManager::facesets ( )
inline

Get facesets.

Returns
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().

+ Here is the caller graph for this function:

◆ messages()

Messages* AssetsManager::messages ( )
inline

Get messages.

Returns
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().

+ Here is the caller graph for this function:

◆ quests()

◆ treasures()

Field Documentation

◆ m_animations

AllAnimations AssetsManager::m_animations
protected

Animations.

Definition at line 84 of file AssetsManager.h.

Referenced by animations(), AssetsManager(), and dumpUndefined().

◆ m_archetypes

Archetypes AssetsManager::m_archetypes
protected

Archetypes.

Definition at line 82 of file AssetsManager.h.

Referenced by archetypes(), AssetsManager(), dumpUndefined(), and ~AssetsManager().

◆ m_faces

Faces AssetsManager::m_faces
protected

Faces.

Definition at line 81 of file AssetsManager.h.

Referenced by AssetsManager(), and faces().

◆ m_facesets

Facesets AssetsManager::m_facesets
protected

Cilent image variants.

Definition at line 87 of file AssetsManager.h.

Referenced by dumpUndefined(), and facesets().

◆ m_listener

Archetypes::updateListener AssetsManager::m_listener
protected

Listener to archetypes changes.

Definition at line 83 of file AssetsManager.h.

Referenced by AssetsManager().

◆ m_messages

Messages AssetsManager::m_messages
protected

Messages.

Definition at line 86 of file AssetsManager.h.

Referenced by messages().

◆ m_quests

Quests AssetsManager::m_quests
protected

Quests.

Definition at line 88 of file AssetsManager.h.

Referenced by dumpUndefined(), and quests().

◆ m_treasures

Treasures AssetsManager::m_treasures
protected

Treasures.

Definition at line 85 of file AssetsManager.h.

Referenced by dumpUndefined(), and treasures().


The documentation for this class was generated from the following files: