Resource icon

[MODCOMP] mSound 2016-10-05

This is the ModComp I made for Dune Wars that gives sound to the plot, and half of that value to the plots around it. This is applied for Cities,Buildings,Units,Promotions, and improvements.

Discussion Thread
Here!

Important Global Defines-
1 = True, 0 = False

MSOUND_SOUND_LEVEL_ENABLED = If the Mod is enabled
MSOUND_SHOW_SOUND_LEVEL_ZERO = If to show the value if it is 0
MSOUND_CITY_BASE_SOUND_LEVEL = The base amount of sound a city gives
MSOUND_CITY_POPULATION_SOUND_MULTIPLER = how much sound each population point gives

Also all my Functions are also exposed to Python, for easier use.

Functions
Spoiler :

Unit-
int getSoundLevel(void) const
Returns the Sound Level of the unit. Default value is recived from unit infos
void setSoundLevel(int iNewValue)
Sets the Units Sound Level to iNewValue
void changeSoundLevel(int iChange)
Adds iChange to Units Sound Level

int getPromotionSoundLevel(void) const
Returns the Sound Level of the Promotion. Default value is received from unit infos
void setPromotionSoundLevel(int iNewValue)
Sets the Promotion Sound Level to iNewValue
void changePromotionSoundLevel(int iChange)
Adds iChange to Promotion Sound Level
int getTotalSoundLevel(void) const
Returns the sound of the Promotion + unit sound level

Plot-
int getSoundLevel(void) const
Returns the Sound Level of the Plot.
int getTotalSoundLevel(void) const
Returns the Sound Level of the Plot + (if City) Total sound of city
void setSoundLevel(int iNewValue)
Sets the Sound Level of the Plot to iNewValue.
void changeSoundLevel(int iChange)
Adds iChange to the Sound Level of the Plot.

City-
int getTotalSoundLevel(void) const
Returns the Sound Level of the City + Buildings + Population Sound.
int getBuildingsSoundLevel(void) const
Returns the Sound Level of all the buildings inside of City.
int getPopulationSoundLevel(void) const
Returns the Sound Level of the Population * Population Sound Modifier

Info's:

Unit-
int getSoundLevel() const
Returns the UnitInfo's Sound Value
Promotion-
int getSoundLevel() const
Returns the PromotionInfo's Sound Value
Building-
int getSoundLevel() const
Returns the BuildingInfo's Sound Value
Improvement-
int getSoundLevel() const
Returns the ImprovementInfo's Sound Value



New XML Tags
Spoiler :

Unit,Building,Improvement Infos
<iSoundLevel>

PromotionInfos
<iSoundLevelModifier>
Author
Melinko
Downloads
248
Views
288
First release
Last update

Ratings

4.00 star(s) 1 ratings
Back
Top Bottom