Drag[en]gine Script Module DragonScript 1.35
Loading...
Searching...
No Matches
Dragengine.ConversationSystem.SimpleConversationCamera Class Reference

Simple conversation camera definition. More...

Inheritance diagram for Dragengine.ConversationSystem.SimpleConversationCamera:

Public Member Functions

void addShot (SimpleConversationCameraShot shot)
 Add shot.
void forEachShot (Block ablock)
 Visit shots with block.
float getDelay ()
 Delay in seconds before activating action.
SimpleConversationCameraShot getShotAt (int index)
 Shot at index.
int getShotCount ()
 Count of shots.
SimpleConversationCamera new (SimpleConversationCamera camera)
 Create deep copy simple conversation camera definition.
SimpleConversationCamera new (StringID id)
 Create simple conversation camera definition.
SimpleConversationCameraShot randomShot ()
 Random shot or null if no shots are present.
void setDelay (float delay)
 Set delay in seconds before activating action.

Public Attributes

float pDelay
StringID pId
Array pShots

Detailed Description

Simple conversation camera definition.

Version
1.25

Defines a list of camera shots to select from.

Member Function Documentation

◆ addShot()

void Dragengine.ConversationSystem.SimpleConversationCamera.addShot ( SimpleConversationCameraShot shot)

◆ forEachShot()

void Dragengine.ConversationSystem.SimpleConversationCamera.forEachShot ( Block ablock)

Visit shots with block.

Block is required to have signature void(SimpleConversationCameraShot shot) or void(int index, SimpleConversationCameraShot shot).

References getDelay(), and pDelay.

Referenced by addShot().

◆ getDelay()

float Dragengine.ConversationSystem.SimpleConversationCamera.getDelay ( )

Delay in seconds before activating action.

Default value is 0.25.

References pId.

Referenced by forEachShot().

◆ getShotAt()

SimpleConversationCameraShot Dragengine.ConversationSystem.SimpleConversationCamera.getShotAt ( int index)

Shot at index.

Referenced by addShot().

◆ getShotCount()

int Dragengine.ConversationSystem.SimpleConversationCamera.getShotCount ( )

Count of shots.

Referenced by addShot().

◆ new() [1/2]

SimpleConversationCamera Dragengine.ConversationSystem.SimpleConversationCamera.new ( SimpleConversationCamera camera)

Create deep copy simple conversation camera definition.

References pDelay, pId, and pShots.

◆ new() [2/2]

SimpleConversationCamera Dragengine.ConversationSystem.SimpleConversationCamera.new ( StringID id)

Create simple conversation camera definition.

References new().

Referenced by new().

◆ randomShot()

SimpleConversationCameraShot Dragengine.ConversationSystem.SimpleConversationCamera.randomShot ( )

Random shot or null if no shots are present.

References pId.

Referenced by addShot().

◆ setDelay()

void Dragengine.ConversationSystem.SimpleConversationCamera.setDelay ( float delay)

Set delay in seconds before activating action.

References pDelay, and pShots.

Referenced by addShot().

Member Data Documentation

◆ pDelay

float Dragengine.ConversationSystem.SimpleConversationCamera.pDelay

Referenced by addShot(), forEachShot(), new(), and setDelay().

◆ pId

StringID Dragengine.ConversationSystem.SimpleConversationCamera.pId

Referenced by getDelay(), new(), and randomShot().

◆ pShots

Array Dragengine.ConversationSystem.SimpleConversationCamera.pShots

Referenced by addShot(), new(), and setDelay().


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