22 #ifndef ILLUSIONS_DICTIONARY_H 23 #define ILLUSIONS_DICTIONARY_H 25 #include "common/hashmap.h" 41 typedef typename Map::iterator MapIterator;
46 for (MapIterator it = _map.begin(); it != _map.end(); ++it) {
51 void add(uint32
id, T *value) {
52 MapIterator it = _map.find(
id);
63 void remove(uint32 id) {
64 MapIterator it = _map.find(
id);
66 if (it != _map.end()) {
77 MapIterator it = _map.find(
id);
79 return it->_value->back();
88 void addActorType(uint32
id,
ActorType *actorType);
89 void removeActorType(uint32
id);
93 void removeFont(uint32
id);
96 void addSequence(uint32
id,
Sequence *sequence);
97 void removeSequence(uint32
id);
100 void addTalkEntry(uint32
id,
TalkEntry *talkEntry);
101 void removeTalkEntry(uint32
id);
104 void setObjectControl(uint32 objectId,
Control *control);
105 Control *getObjectControl(uint32 objectId);
117 #endif // ILLUSIONS_DICTIONARY_H Definition: fontresource.h:58
Definition: dictionary.h:85
Definition: dictionary.h:36
Definition: talkresource.h:42
Definition: actorresource.h:58
Definition: actorresource.h:51
void erase(iterator entry)
Definition: hashmap.h:708
Definition: list_intern.h:51
void push_back(const t_T &element)
Definition: list.h:139
void pop_back()
Definition: list.h:150
bool empty() const
Definition: list.h:218