Drag[en]gine Script Module DragonScript Script API  1.0
MaterialSoundMatrix Class Reference
Inheritance diagram for MaterialSoundMatrix:

Public Member Functions

int getMaterialCount ()
 
Sound getSound (int material1, int material2)
 
MaterialSoundMatrix new ()
 
void setMaterialCount (int count)
 
void setSound (int material1, int material2, Sound sound)
 

Detailed Description

Matrix defining which sound to play for two materials colliding.

Author
Roland Pl├╝ss
Version
1.0
Date
2015

Member Function Documentation

§ getMaterialCount()

int getMaterialCount ( )

Retrieves the number of materials in the matrix.

§ getSound()

Sound getSound ( int  material1,
int  material2 
)

Retrieves the sound for two materials or null if not defined.

§ new()

Creates a new material sound matrix.

§ setMaterialCount()

void setMaterialCount ( int  count)

Sets the number of materials in the matrix. This creates a new matrix with null entries if the count is different.

§ setSound()

void setSound ( int  material1,
int  material2,
Sound  sound 
)

Sets the sound for two materials or null if not defined.


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