/********************************************************************** Freeciv - Copyright (C) 1996 - A Kjeldberg, L Gregersen, P Unold This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. ***********************************************************************/ /* Sound Magics */ #define SOUND_LOW_ON_FOUNDS 0 #define SOUND_POLLUTION 1 #define SOUND_WARMING 2 #define SOUND_CITY_DISORDER 3 #define SOUND_CITY_CELEBRATE 4 #define SOUND_CITY_RETURNS_TO_NORMAL 5 #define SOUND_CITY_GROWTH 6 #define SOUND_CITY_NEEDS_AQUEDUCT 7 #define SOUND_CITY_BUILDING_AQUEDUCT 8 #define SOUND_CITY_FAMINE 9 #define SOUND_CITY_LOST 10 #define SOUND_CITY_CANT_BUILD 11 #define SOUND_WONDER_STARTED 12 #define SOUND_WONDER_STOPPED 13 #define SOUND_WONDER_BUILT 14 #define SOUND_IMPROVEMENT_BUILT 15 #define SOUND_IMPROVEMENT_AUTO_PICKED 16 #define SOUND_IMPROVEMENT_AUCTIONED 17 #define SOUND_IMPROVEMENT_BOUGHT 18 #define SOUND_IMPROVEMENT_SOLD 19 #define SOUND_UNIT_UPGRADED 20 #define SOUND_UNIT_BUILT 21 #define SOUND_UNIT_BOUGHT 22 #define SOUND_UNIT_LOST 23 #define SOUND_UNIT_WIN 24 #define SOUND_UNIT_LOST_ATTACK 25 #define SOUND_UNIT_WON_ATTACK 26 #define SOUND_ANARCHY 27 #define SOUND_DIPLOMATED 28 #define SOUND_TECH_GAIN 29 #define SOUND_DESTROYED 30 #define SOUND_MY_DIPLOMAT_ACTION 31 #define SOUND_CITY_GRAINNERY_THROTTLE 32 #define SOUND_SPACESHIP 33 #define SOUND_BARBARIAN_UPRISING 34 #define SOUND_WORKLIST 35 #define SOUND_NEW_YEAR 36 #define SOUND_UNIT_ACTIVATE 0 #define SOUND_UNIT_MOVE 1 #define SOUND_UNIT_ATTACK 2 #define SOUND_UNIT_SPECIAL 3 #define SOUND_UNIT_DESTROYED 4 struct unit_sounds_s { char name[20]; char file[5][120]; }; struct event_sounds_s { char file[120]; }; static const struct unit_sounds_s unit_sounds[52] = { /* Activate Move Attack Special Destroyed */ { "Settlers", {"", "/opt/smacx_demo/data/fx/infantry.wav", "", "", "" }}, { "Engineers", {"", "/opt/smacx_demo/data/fx/infantry.wav", "", "", "" }}, { "Warriors", {"", "/opt/smacx_demo/data/fx/infantry.wav", "", "", "" }}, { "Phalanx", {"", "/opt/smacx_demo/data/fx/infantry.wav", "", "", "" }}, { "Archers", {"", "/opt/smacx_demo/data/fx/infantry.wav", "", "", "" }}, { "Legion", {"", "/opt/smacx_demo/data/fx/infantry.wav", "", "", "" }}, { "Pikemen", {"", "/opt/smacx_demo/data/fx/infantry.wav", "", "", "" }}, { "Musketeers", {"", "", "/usr/local/share/freeciv/sound/357mag.wav", "", "" }}, { "Fanatics", {"", "/opt/smacx_demo/data/fx/infantry.wav", "", "", "" }}, { "Partisan", {"", "/opt/smacx_demo/data/fx/infantry.wav", "", "", "" }}, { "Alpine Troops", {"", "/opt/smacx_demo/data/fx/infantry.wav", "", "", "" }}, { "Riflemen", {"", "", "/usr/local/share/freeciv/sound/357mag.wav", "", "" }}, { "Marines", {"", "/opt/smacx_demo/data/fx/infantry.wav", "", "", "" }}, { "Paratroopers", {"", "/opt/smacx_demo/data/fx/infantry.wav" }}, { "Mech. Inf.", {"", "/opt/smacx_demo/data/fx/infantry.wav", "", "", "" }}, { "Horsemen", {"", "/opt/smacx_demo/data/fx/infantry.wav", "", "", "" }}, { "Chariot", {"", "/opt/smacx_demo/data/fx/infantry.wav", "", "", "" }}, { "Elephants", {"", "/opt/smacx_demo/data/fx/infantry.wav", "", "", "" }}, { "Crusaders", {"", "/opt/smacx_demo/data/fx/infantry.wav", "", "", "" }}, { "Knights", {"", "/opt/smacx_demo/data/fx/infantry.wav", "", "", "" }}, { "Dragoons", {"", "/opt/smacx_demo/data/fx/infantry.wav", "", "", "" }}, { "Cavalry", {"", "/opt/smacx_demo/data/fx/infantry.wav", "", "", "" }}, { "Armor", {"", "/opt/smacx_demo/data/fx/infantry.wav", "", "", "" }}, { "Catapult", {"", "/opt/smacx_demo/data/fx/infantry.wav", "", "", "" }}, { "Cannon", {"", "", "/usr/local/share/freeciv/sound/cannon.wav", "", "" }}, { "Artillery", {"", "", "/usr/local/share/freeciv/sound/cannon.wav", "", "" }}, { "Howitzer", {"", "", "/usr/local/share/freeciv/sound/cannon.wav", "", "" }}, { "Fighter", {"", "", "/usr/local/share/freeciv/sound/AIRCOMBT.WAV", "", "" }}, { "Bomber", {"", "", "/usr/local/share/freeciv/sound/bomb.wav", "", "" }}, { "Helicopter", {"", "", "/usr/local/share/freeciv/sound/barrage.wav", "", "" }}, { "Stealth Fighter", {"", "", "/usr/local/share/freeciv/sound/barrage.wav", "", "" }}, { "Stealth Bomber", {"", "", "/usr/local/share/freeciv/sound/bomb.wav", "", "" }}, { "Tireme", {"", "/opt/smacx_demo/data/fx/infantry.wav", "", "", "" }}, { "Caravel", {"", "/opt/smacx_demo/data/fx/infantry.wav", "", "", "" }}, { "Galleon", {"", "/opt/smacx_demo/data/fx/infantry.wav", "", "", "" }}, { "Frigate", {"", "/opt/smacx_demo/data/fx/infantry.wav", "", "", "" }}, { "Ironclad", {"", "/opt/smacx_demo/data/fx/infantry.wav", "", "", "" }}, { "Destroyer", {"", "/opt/smacx_demo/data/fx/infantry.wav", "", "", "" }}, { "Cruiser", {"", "/opt/smacx_demo/data/fx/infantry.wav", "", "", "" }}, { "AEGIS Cruiser", {"", "/opt/smacx_demo/data/fx/infantry.wav", "", "", "" }}, { "Battleship", {"", "/opt/smacx_demo/data/fx/infantry.wav", "", "", "" }}, { "Submarine", {"", "/opt/smacx_demo/data/fx/infantry.wav", "", "", "" }}, { "Carrier", {"", "/opt/smacx_demo/data/fx/infantry.wav", "", "", "" }}, { "Transport", {"", "/opt/smacx_demo/data/fx/infantry.wav", "", "", "" }}, { "Cruise Missile", {"", "", "/usr/local/share/freeciv/sound/barrage.wav", "", "" }}, { "Nuclear", {"", "", "/usr/local/share/freeciv/sound/airnuke.wav", "", "" }}, { "Diplomat", {"", "/opt/smacx_demo/data/fx/infantry.wav", "", "", "" }}, { "Spy", {"", "/opt/smacx_demo/data/fx/infantry.wav", "", "", "" }}, { "Caravan", {"", "/opt/smacx_demo/data/fx/infantry.wav", "", "", "" }}, { "Freight", {"", "/opt/smacx_demo/data/fx/infantry.wav", "", "", "" }}, { "Explorer", {"", "/opt/smacx_demo/data/fx/explorer.wav", "", "", "" }}, { "Barbarian Leader", {"", "/opt/smacx_demo/data/fx/infantry.wav", "", "", "" }} }; static const struct event_sounds_s event_sounds[37] = { {"/usr/local/share/freeciv/sound/"}, {"/usr/local/share/freeciv/sound/"}, {"/usr/local/share/freeciv/sound/"}, {"/usr/local/share/freeciv/sound/"}, {"/usr/local/share/freeciv/sound/"}, {"/usr/local/share/freeciv/sound/"}, {"/usr/local/share/freeciv/sound/"}, {"/usr/local/share/freeciv/sound/"}, {"/usr/local/share/freeciv/sound/"}, {"/usr/local/share/freeciv/sound/"}, {"/usr/local/share/freeciv/sound/"}, {"/usr/local/share/freeciv/sound/"}, {"/usr/local/share/freeciv/sound/"}, {"/usr/local/share/freeciv/sound/"}, {"/usr/local/share/freeciv/sound/"}, {"/usr/local/share/freeciv/sound/"}, {"/usr/local/share/freeciv/sound/"}, {"/usr/local/share/freeciv/sound/"}, {"/usr/local/share/freeciv/sound/"}, {"/usr/local/share/freeciv/sound/"}, {"/usr/local/share/freeciv/sound/"}, {"/usr/local/share/freeciv/sound/"}, {"/usr/local/share/freeciv/sound/"}, {"/usr/local/share/freeciv/sound/"}, {"/usr/local/share/freeciv/sound/"}, {"/usr/local/share/freeciv/sound/"}, {"/usr/local/share/freeciv/sound/"}, {"/usr/local/share/freeciv/sound/"}, {"/usr/local/share/freeciv/sound/"}, {"/usr/local/share/freeciv/sound/"}, {"/usr/local/share/freeciv/sound/"}, {"/usr/local/share/freeciv/sound/"}, {"/usr/local/share/freeciv/sound/"}, {"/usr/local/share/freeciv/sound/"}, {"/usr/local/share/freeciv/sound/"}, {"/usr/local/share/freeciv/sound/"}, {"/usr/local/share/freeciv/sound/"} }; void play_sound_unit (struct unit *, int); void play_sound_event (int);