playing a sound for quick highlight pointer(marker)
This commit is contained in:
parent
e311c439f6
commit
69f4294950
|
@ -1684,6 +1684,9 @@ void Game::addOrReplaceInHighlightedCells(MarkedCell mc){
|
||||||
}
|
}
|
||||||
mc.setAliveCount(200);
|
mc.setAliveCount(200);
|
||||||
highlightedCells.push_back(mc);
|
highlightedCells.push_back(mc);
|
||||||
|
CoreData &coreData= CoreData::getInstance();
|
||||||
|
SoundRenderer &soundRenderer= SoundRenderer::getInstance();
|
||||||
|
soundRenderer.playFx(coreData.getMarkerSound());
|
||||||
}
|
}
|
||||||
|
|
||||||
void Game::ReplaceDisconnectedNetworkPlayersWithAI(bool isNetworkGame, NetworkRole role) {
|
void Game::ReplaceDisconnectedNetworkPlayersWithAI(bool isNetworkGame, NetworkRole role) {
|
||||||
|
|
|
@ -365,6 +365,7 @@ void CoreData::load() {
|
||||||
clickSoundC.load(getGameCustomCoreDataPath(data_path, "data/core/menu/sound/click_c.wav"));
|
clickSoundC.load(getGameCustomCoreDataPath(data_path, "data/core/menu/sound/click_c.wav"));
|
||||||
attentionSound.load(getGameCustomCoreDataPath(data_path, "data/core/menu/sound/attention.wav"));
|
attentionSound.load(getGameCustomCoreDataPath(data_path, "data/core/menu/sound/attention.wav"));
|
||||||
highlightSound.load(getGameCustomCoreDataPath(data_path, "data/core/menu/sound/highlight.wav"));
|
highlightSound.load(getGameCustomCoreDataPath(data_path, "data/core/menu/sound/highlight.wav"));
|
||||||
|
markerSound.load(getGameCustomCoreDataPath(data_path, "data/core/menu/sound/sonar.wav"));
|
||||||
|
|
||||||
XmlTree xmlTree;
|
XmlTree xmlTree;
|
||||||
//string data_path = getGameReadWritePath(GameConstants::path_data_CacheLookupKey);
|
//string data_path = getGameReadWritePath(GameConstants::path_data_CacheLookupKey);
|
||||||
|
|
|
@ -50,6 +50,7 @@ private:
|
||||||
StaticSound clickSoundC;
|
StaticSound clickSoundC;
|
||||||
StaticSound attentionSound;
|
StaticSound attentionSound;
|
||||||
StaticSound highlightSound;
|
StaticSound highlightSound;
|
||||||
|
StaticSound markerSound;
|
||||||
SoundContainer waterSounds;
|
SoundContainer waterSounds;
|
||||||
|
|
||||||
Texture2D *logoTexture;
|
Texture2D *logoTexture;
|
||||||
|
@ -163,6 +164,7 @@ public:
|
||||||
StaticSound *getClickSoundC() {return &clickSoundC;}
|
StaticSound *getClickSoundC() {return &clickSoundC;}
|
||||||
StaticSound *getAttentionSound() {return &attentionSound;}
|
StaticSound *getAttentionSound() {return &attentionSound;}
|
||||||
StaticSound *getHighlightSound() {return &highlightSound;}
|
StaticSound *getHighlightSound() {return &highlightSound;}
|
||||||
|
StaticSound *getMarkerSound() {return &markerSound;}
|
||||||
StaticSound *getWaterSound() {return waterSounds.getRandSound();}
|
StaticSound *getWaterSound() {return waterSounds.getRandSound();}
|
||||||
|
|
||||||
Font2D *getDisplayFont() const {return displayFont;}
|
Font2D *getDisplayFont() const {return displayFont;}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user