#include <case.h>
Public Member Functions | |
| Case () | |
| Default constructor. | |
| ~Case () | |
| Destructor. | |
| void | setOverview (const Overview &overview) |
| Set the case overview. | |
| Overview | getOverview () const |
| Get the current case overview. | |
| void | setOverrides (const Overrides &ov) |
| Set the overrides for this case. | |
| Overrides | getOverrides () const |
| Get the case overrides. | |
| void | setInitialBlockId (const ustring &id) |
| Set the ID of the initial text block. | |
| ustring | getInitialBlockId () const |
| Get the initial text block ID. | |
| void | addCharacter (const Character &character) |
| Add a character to the internal map. | |
| void | addBackground (const Background &bg) |
| Add a background to the internal map. | |
| void | addEvidence (const Evidence &evidence) |
| Add a piece of evidence to the internal map. | |
| void | addImage (const Image &image) |
| Add an image to the internal map. | |
| void | addLocation (const Location &loc) |
| Add a location to the internal map. | |
| void | addTestimony (const Testimony &testimony) |
| Add a testimony to the internal map. | |
| void | addBuffer (const ustring &id, const ustring &contents) |
| Add a text buffer to the internal map. | |
| Character * | getCharacter (const ustring &id) |
| Get a character. | |
| Background * | getBackground (const ustring &id) |
| Get a background. | |
| Evidence * | getEvidence (const ustring &id) |
| Get a piece of evidence. | |
| Image * | getImage (const ustring &id) |
| Get an image. | |
| Location * | getLocation (const ustring &id) |
| Get a location. | |
| Testimony * | getTestimony (const ustring &id) |
| Get a testimony. | |
| std::vector< Evidence * > | getEvidenceFromIds (const StringVector &vec) |
| Get a vector of evidence based on vector of string IDs. | |
| std::vector < Character * > | getCharactersFromIds (const StringVector &vec) |
| Get a vector of characters based on vector of string IDs. | |
| void | clear () |
| Clear the entire case information. | |
| CharacterMap | getCharacters () const |
| Get a full map of characters. | |
| BackgroundMap | getBackgrounds () const |
| Get a full map of backgrounds. | |
| EvidenceMap | getEvidence () const |
| Get a full map of evidence. | |
| ImageMap | getImages () const |
| Get a full map of images. | |
| LocationMap | getLocations () const |
| Get a full map of locations. | |
| TestimonyMap | getTestimonies () const |
| Get a full map of testimonies. | |
| BufferMap | getBuffers () const |
| Get a map of buffers. | |
Private Attributes | |
| Overrides | m_Overrides |
| Case overrides. | |
| Overview | m_Overview |
| General case data. | |
| ustring | m_InitialBlockId |
| Initial text block that will be displayed when the case starts. | |
| CharacterMap | m_Characters |
| Map of characters. | |
| BackgroundMap | m_Backgrounds |
| Map of backgrounds. | |
| EvidenceMap | m_Evidence |
| Map of evidence. | |
| ImageMap | m_Images |
| Map of images. | |
| LocationMap | m_Locations |
| Map of locations. | |
| TestimonyMap | m_Testimonies |
| Map of testimonies. | |
| BufferMap | m_Buffers |
| Map of buffers. | |
This class stores all of the individual bits and pieces of a case, such as testimonies, text blocks, images, characters, etc.
| void Case::Case::setOverview | ( | const Overview & | overview | ) |
Set the case overview.
| overview | An Overview struct |
| Overview Case::Case::getOverview | ( | ) | const [inline] |
Get the current case overview.
| void Case::Case::setOverrides | ( | const Overrides & | ov | ) | [inline] |
Set the overrides for this case.
| ov | A filled Overrides struct |
| Overrides Case::Case::getOverrides | ( | ) | const [inline] |
Get the case overrides.
| void Case::Case::setInitialBlockId | ( | const ustring & | id | ) | [inline] |
Set the ID of the initial text block.
| id | ID of the text block |
| ustring Case::Case::getInitialBlockId | ( | ) | const [inline] |
Get the initial text block ID.
| void Case::Case::addCharacter | ( | const Character & | character | ) |
Add a character to the internal map.
| character | The character |
| void Case::Case::addBackground | ( | const Background & | bg | ) |
Add a background to the internal map.
| bg | The background |
| void Case::Case::addEvidence | ( | const Evidence & | evidence | ) |
Add a piece of evidence to the internal map.
| evidence | The evidence |
| void Case::Case::addImage | ( | const Image & | image | ) |
Add an image to the internal map.
| image | The image |
| void Case::Case::addLocation | ( | const Location & | loc | ) |
Add a location to the internal map.
| loc | The location |
| void Case::Case::addTestimony | ( | const Testimony & | testimony | ) |
Add a testimony to the internal map.
| testimony | The testimony |
| void Case::Case::addBuffer | ( | const ustring & | id, | |
| const ustring & | contents | |||
| ) |
Add a text buffer to the internal map.
| id | The ID of the block | |
| contents | The block contents |
| Character * Case::Case::getCharacter | ( | const ustring & | id | ) |
| Case::Background * Case::Case::getBackground | ( | const ustring & | id | ) |
Get a background.
| id | The ID of the background |
| Case::Evidence * Case::Case::getEvidence | ( | const ustring & | id | ) |
Get a piece of evidence.
| id | The ID of the evidence |
| Case::Image * Case::Case::getImage | ( | const ustring & | id | ) |
Get an image.
| id | The ID of the image |
| Case::Location * Case::Case::getLocation | ( | const ustring & | id | ) |
Get a location.
| id | The ID of the location |
| Case::Testimony * Case::Case::getTestimony | ( | const ustring & | id | ) |
Get a testimony.
| id | The ID of the testimony |
| std::vector< Case::Evidence * > Case::Case::getEvidenceFromIds | ( | const StringVector & | vec | ) |
Get a vector of evidence based on vector of string IDs.
| vec | The vector of IDs |
| std::vector< Character * > Case::Case::getCharactersFromIds | ( | const StringVector & | vec | ) |
Get a vector of characters based on vector of string IDs.
| vec | Vector of IDs |
| CharacterMap Case::Case::getCharacters | ( | ) | const [inline] |
Get a full map of characters.
| BackgroundMap Case::Case::getBackgrounds | ( | ) | const [inline] |
Get a full map of backgrounds.
| EvidenceMap Case::Case::getEvidence | ( | ) | const [inline] |
Get a full map of evidence.
| ImageMap Case::Case::getImages | ( | ) | const [inline] |
Get a full map of images.
| LocationMap Case::Case::getLocations | ( | ) | const [inline] |
Get a full map of locations.
| TestimonyMap Case::Case::getTestimonies | ( | ) | const [inline] |
Get a full map of testimonies.
| BufferMap Case::Case::getBuffers | ( | ) | const [inline] |
Get a map of buffers.
1.5.3