--	Stratagus Map - Single player campaign

Briefing("type", "wc2",
  "title", "Use the beetles to destroy the Black Tunnel !!!",
  "objective", "-Destroy the Tunnel",
 --"objective", "-Destroy the Blue ants",
 --"objective", "-Build one warrior",
  --"objective", "-Add more objectives here",
  "background", "graphics/ui/Menu_background_without_title.png",
	"unit-card", "graphics/ui/cards/unit-beetle.png", 
	"unit-card", "graphics/ui/cards/unit-tunnel.png", 
	--"unit-card", "graphics/ui/cards/Submarine.png", 
  "text", "campaigns/red-ants/campaign13/campaign.txt"
  --,
  --"voice", "campaigns/red-ants/level01h-intro1.wav",
  --"voice", "campaigns/red-ants/level01h-intro2.wav"
)


--First Attack

-- Victory
AddTrigger(
  function()
    return 
IfUnit(1, "<=", 0, "unit-tunnel") 
end,
  function() return ActionVictory() end)
-- Defeat
AddTrigger(
  function() return IfUnit("this", "==", 0, "all") end,
  function() return ActionDefeat() end)



DefineAllow("unit-scout",			"AAAAAAAAAAAAAAAA")
DefineAllow("unit-acid-ant",			"FFFFFFFFFFFFFFFF")
DefineAllow("unit-advwarrior",			"FFFFFFFFFFFFFFFF")
DefineAllow("unit-axe-ant",			"FFFFFFFFFFFFFFFF")
DefineAllow("unit-bee",				"FFFFFFFFFFFFFFFF")
DefineAllow("unit-beetle",			"AAAAAAAAAAAAAAAA")
DefineAllow("unit-bee-warrior",			"FFFFFFFFFFFFFFFF")
DefineAllow("unit-butterfly",			"FFFFFFFFFFFFFFFF")
DefineAllow("unit-grenadier",			"AAAAAAAAAAAAAAAA")
DefineAllow("unit-helicopter",		"AAAAAAAAAAAAAAAA")
DefineAllow("unit-medic-ant",			"FFFFFFFFFFFFFFFF")
DefineAllow("unit-medic-house",			"FFFFFFFFFFFFFFFF")
DefineAllow("unit-missile-house",		"FFFFFFFFFFFFFFFF")
DefineAllow("unit-sniper",			"FFFFFFFFFFFFFFFF")
DefineAllow("unit-temple",			"AAAAAAAAAAAAAAAA")
DefineAllow("unit-tunnel",			"FFFFFFFFFFFFFFFF")

DefineAllow("unit-warrior",            		"AAAAAAAAAAAAAAAA")
DefineAllow("unit-worker",            		"AAAAAAAAAAAAAAAA")
DefineAllow("unit-worker1",            		"AAAAAAAAAAAAAAAA")
DefineAllow("unit-tank",               		"AAAAAAAAAAAAAAAA")
DefineAllow("unit-knight",              	"AAAAAAAAAAAAAAAA")
DefineAllow("unit-archer",             		"AAAAAAAAAAAAAAAA")
DefineAllow("unit-witch",               	"AAAAAAAAAAAAAAAA")
DefineAllow("unit-advanced-knight",     	"FFFFFFFFFFFFFFFF")
DefineAllow("unit-dynamite-ant",        	"AAAAAAAAAAAAAAAA")
DefineAllow("unit-advanced-archer",    		"FFFFFFFFFFFFFFFF")
DefineAllow("unit-flying-angle",        	"FFFFFFFFFFFFFFFF")
DefineAllow("unit-plancton-collector",  	"AAAAAAAAAAAAAAAA")
DefineAllow("unit-shuttle",             	"AAAAAAAAAAAAAAAA")
DefineAllow("unit-gunboat",             	"AAAAAAAAAAAAAAAA")
DefineAllow("unit-gallion",             	"AAAAAAAAAAAAAAAA")
DefineAllow("unit-submarine",           	"AAAAAAAAAAAAAAAA")
DefineAllow("unit-flying-ant",          	"FFFFFFFFFFFFFFFF")
DefineAllow("unit-dragonfly",           	"FFFFFFFFFFFFFFFF")
DefineAllow("unit-knight-rider",        	"FFFFFFFFFFFFFFFF")

DefineAllow("unit-egg-collector",       	"AAAAAAAAAAAAAAAA")
DefineAllow("unit-barracks",            	"AAAAAAAAAAAAAAAA")
DefineAllow("unit-watch-tower",         	"AAAAAAAAAAAAAAAA")
DefineAllow("unit-insect-house",        	"AAAAAAAAAAAAAAAA")
DefineAllow("unit-alchemist",           	"AAAAAAAAAAAAAAAA")
DefineAllow("unit-flying-house",        	"AAAAAAAAAAAAAAAA")
DefineAllow("unit-dock",                	"AAAAAAAAAAAAAAAA")
DefineAllow("unit-queen",               	"AAAAAAAAAAAAAAAA")
DefineAllow("unit-queen-castle",        	"AAAAAAAAAAAAAAAA")
DefineAllow("unit-queen-fortress",      	"AAAAAAAAAAAAAAAA")
DefineAllow("unit-wood-house",          	"AAAAAAAAAAAAAAAA")
DefineAllow("unit-foundry",             	"AAAAAAAAAAAAAAAA")
DefineAllow("unit-witch-tower",         	"AAAAAAAAAAAAAAAA")
DefineAllow("unit-blacksmith",          	"AAAAAAAAAAAAAAAA")
DefineAllow("unit-plancton-house",      	"AAAAAAAAAAAAAAAA")
DefineAllow("unit-plancton-platform",   	"AAAAAAAAAAAAAAAA")
DefineAllow("unit-queen-castle",        	"AAAAAAAAAAAAAAAA")
DefineAllow("unit-queen-fortress",      	"AAAAAAAAAAAAAAAA")
DefineAllow("unit-red-ants-start-location", 	"FFFFFFFFFFFFFFFF")
DefineAllow("unit-arrow-tower",         	"AAAAAAAAAAAAAAAA")
DefineAllow("unit-cannon-tower",        	"AAAAAAAAAAAAAAAA")
DefineAllow("unit-human-wall",          	"FFFFFFFFFFFFFFFF")

--- upgrades
DefineAllow("upgrade-worker1",          	"AAAAAAAAAAAAAAAA")
DefineAllow("upgrade-sword1",           	"AAAAAAAAAAAAAAAA")
DefineAllow("upgrade-sword2",           	"AAAAAAAAAAAAAAAA")
DefineAllow("upgrade-arrow1",           	"AAAAAAAAAAAAAAAA")
DefineAllow("upgrade-arrow2",           	"AAAAAAAAAAAAAAAA")
DefineAllow("upgrade-human-shield1",    	"AAAAAAAAAAAAAAAA")
DefineAllow("upgrade-human-shield2",    	"AAAAAAAAAAAAAAAA")
DefineAllow("upgrade-human-ship-cannon1", 	"AAAAAAAAAAAAAAAA")
DefineAllow("upgrade-human-ship-cannon2", 	"AAAAAAAAAAAAAAAA")
DefineAllow("upgrade-human-ship-armor1",	"AAAAAAAAAAAAAAAA")
DefineAllow("upgrade-human-ship-armor2", 	"AAAAAAAAAAAAAAAA")
DefineAllow("upgrade-ballista1",        	"AAAAAAAAAAAAAAAA")
DefineAllow("upgrade-ballista2",        	"AAAAAAAAAAAAAAAA")
DefineAllow("upgrade-ranger",           	"FFFFFFFFFFFFFFFF")
DefineAllow("upgrade-longbow",          	"FFFFFFFFFFFFFFFF")
DefineAllow("upgrade-ranger-scouting",  	"FFFFFFFFFFFFFFFF")
DefineAllow("upgrade-ranger-marksmanship",	"FFFFFFFFFFFFFFFF")
DefineAllow("upgrade-paladin",          	"FFFFFFFFFFFFFFFF")
DefineAllow("upgrade-holy-vision",      	"RRRRRRRRRRRRRRRR")
DefineAllow("upgrade-healing",          	"FFFFFFFFFFFFFFFF")
DefineAllow("upgrade-area-healing",      	"FFFFFFFFFFFFFFFF")
DefineAllow("upgrade-exorcism",         	"FFFFFFFFFFFFFFFF")
DefineAllow("upgrade-flame-shield",     	"FFFFFFFFFFFFFFFF")
DefineAllow("upgrade-fireball",         	"RRRRRRRRRRRRRRRR")
DefineAllow("upgrade-slow",             	"FFFFFFFFFFFFFFFF")
DefineAllow("upgrade-invisibility",     	"FFFFFFFFFFFFFFFF")
DefineAllow("upgrade-polymorph",        	"AAAAAAAAAAAAAAAA")
DefineAllow("upgrade-blizzard",         	"AAAAAAAAAAAAAAAA")
DefineAllow("unit-acid-tower",         "AAAAAAAAAAAAAAAA")

LoadPud("campaigns/red-ants/campaign13/scarabeeCampaign.pud.gz")
