◆ play()
ResourceId Asylum::Speech::play |
( |
ResourceId |
soundResourceId, |
|
|
ResourceId |
textResourceId |
|
) |
| |
Play speech
- Parameters
-
soundResourceId | The sound resource id. |
textResourceId | The text resource id. |
◆ prepareSpeech()
void Asylum::Speech::prepareSpeech |
( |
| ) |
|
Prepare speech to play
- Process sound speech and draws dialog in screen
◆ playIndexed()
ResourceId Asylum::Speech::playIndexed |
( |
int32 |
index | ) |
|
Play speech by index offset.
- Parameters
-
- Returns
- the ResourceId for the sound played
◆ playScene()
ResourceId Asylum::Speech::playScene |
( |
int32 |
type, |
|
|
int32 |
index |
|
) |
| |
Play scene speech.
- Parameters
-
type | The type of speech to play. |
index | The index offset. |
- Returns
- the ResourceId for the sound played
◆ playPlayer()
ResourceId Asylum::Speech::playPlayer |
( |
int32 |
index | ) |
|
Play speech by index offset (based on player type)
- Parameters
-
- Returns
- the ResourceId for the sound played
◆ resetResourceIds()
void Asylum::Speech::resetResourceIds |
( |
| ) |
|
Resets the resource identifiers.
◆ resetTextData()
void Asylum::Speech::resetTextData |
( |
| ) |
|
◆ getSoundResourceId()
ResourceId Asylum::Speech::getSoundResourceId |
( |
| ) |
const |
|
inline |
Gets the sound resource identifier.
- Returns
- The sound resource identifier.
◆ setTick()
void Asylum::Speech::setTick |
( |
int32 |
val | ) |
|
|
inline |
Sets the tick.
- Parameters
-
◆ getTick()
uint32 Asylum::Speech::getTick |
( |
| ) |
|
|
inline |
Gets the tick.
- Returns
- The tick.
◆ setSoundResourceId()
void Asylum::Speech::setSoundResourceId |
( |
ResourceId |
id | ) |
|
|
inline |
Sets the sound resource identifier
- Parameters
-
id | The sound resource identifier. |
◆ setTextResourceId()
void Asylum::Speech::setTextResourceId |
( |
ResourceId |
id | ) |
|
|
inline |
Sets the text resource identifier
- Parameters
-
id | The text resource identifier. |
◆ getTextResourceId()
ResourceId Asylum::Speech::getTextResourceId |
( |
| ) |
|
|
inline |
Gets the text resource identifier.
- Returns
- The text resource identifier.
◆ setTextData()
void Asylum::Speech::setTextData |
( |
char * |
text | ) |
|
|
inline |
Sets text data.
- Parameters
-
◆ getTextData()
char* Asylum::Speech::getTextData |
( |
| ) |
|
|
inline |
Get text data
- Returns
- the text data
◆ setTextDataPos()
void Asylum::Speech::setTextDataPos |
( |
char * |
text | ) |
|
|
inline |
Sets text data position.
- Parameters
-
◆ getTextDataPos()
char* Asylum::Speech::getTextDataPos |
( |
| ) |
|
|
inline |
Get text data position
- Returns
- the text data position
The documentation for this class was generated from the following file: