--====================================================================================
---tilesets.lua
--- Nothing to add except maybe "tileset-summer", winter, definitions if not previously defined

--====================================================================================
---icons.lua
DefineIcon({
  Name = "icon-unit-scout",
  Tileset = "tileset-summer",
  Size = {46, 38},
  Index = 0,
  File = "tilesets/summer/scout_icon.png"})
DefineIcon({
  Name = "icon-unit-scout",
  Tileset = "tileset-winter",
  Size = {46, 38},
  Index = 0,
  File = "tilesets/summer/scout_icon.png"})
DefineIcon({
  Name = "icon-unit-scout",
  Tileset = "tileset-wasteland",
  Size = {46, 38},
  Index = 0,
  File = "tilesets/summer/scout_icon.png"})
DefineIcon({
  Name = "icon-unit-scout",
  Tileset = "tileset-swamp",
  Size = {46, 38},
  Index = 0,
  File = "tilesets/summer/scout_icon.png"})


--====================================================================================
---anim.lua
DefineAnimations("animations-scout",
  "still", {    -- #24
    { 2, 0,   10,   0}, { 2, 0,   10,   0}, { 3, 0,   10,  0}},
  "move", { -- #12, P32
    	{ 0, 0,   1,   0}, 
	{ 0, 3,   1,   0},
	{ 0, 3,   1,   0},

	{ 0, 3,   1,   5},
	{ 0, 3,   1,   5},
	{ 0, 3,   1,   5}, 
	
	{ 0, 3,   1,  10}, 
	{ 0, 3,   1,  10},
	{ 0, 3,   1,  10}, 

	{ 3, 3,   1,   0}},

  "attack", {   -- #1
    {2, 0, 10,   5},{12, 0, 10,   10}, 
	{2, 0, 10,   10},{2, 0, 10,   5},{ 3, 0,   1,   10}},
  "die", {  -- #31
    { 0, 0,   1,  0}, { 3, 0,   1,  0}})
--====================================================================================
---units.lua
DefineUnitType("unit-scout", { Name = "Scout",
  Files = {"tileset-summer", "red-ants/units/scout.png"},
  Size = {72, 72},
  -- Shadow = {"file", "red-ants/units/helicopter.png", "size", {80, 88}, "offset", {0, 40}},
  Animations = "animations-scout", Icon = "icon-unit-scout",
  Costs = {"time", 10, "sugar", 400, "wood", 50},
  Speed = 40,
  HitPoints = 40,
  TileSize = {1, 1}, BoxSize = {63, 63},
  DrawLevel = 40, SightRange = 8, ComputerReactionRange = 8, PersonReactionRange = 7,
  Armor = 6, BasicDamage = 0, PiercingDamage = 0, Missile = "missile-none",
  MaxAttackRange = 1,
  Priority = 30,
  Points = 50,
  Demand = 1,
  ExplodeWhenKilled = "missile-explosion",
  Type = "land",
  RightMouseAction = "move",
  DetectCloak = true,
--  CanAttack = true,
  CanTargetLand = true, 
  LandUnit = true,
  organic = false,
  SelectableByRectangle = true,
   Sounds = {
    "selected", "red-ant-worker-selected",
    "acknowledge", "red-ant-worker-acknowledge",
    "ready", "red-ant-worker-ready",
    "help", "basic alliance voices help 1",
    "dead", "basic alliance voices dead",
    "attack", "red-ant-worker-attack"} } )

--====================================================================================
---upgrade.lua
---DefineUpgrade("upgrade-worker1", "icon", "icon-harvest",
--  "costs", {   200,   1000,   500,     0,     0,     0,     0})
---DefineModifier("upgrade-sword1",
--  {"piercing-damage", 2},
--  {"apply-to", "unit-warrior"}, {"apply-to", "unit-knight"}, {"apply-to", "unit-advanced-knight"},
--  {"apply-to", "unit-dynamite-ant"},
--  {"apply-to", "unit-knight-rider"})
DefineAllow("unit-scout",              "AAAAAAAAAAAAAAAA")
--DefineDependency("unit-beetle",                 {"unit-queen-fortress"})

--====================================================================================
---fonts.lua
-- Nothing to add

--====================================================================================
---buttons.lua


DefineButton( { Pos = 4, Level = 0, Icon = "icon-unit-scout",
  Action = "train-unit", Value = "unit-scout",
  Key = "o", Hint = "TRAIN SC~!OUT",
  ForUnit = {"unit-queen,unit-queen-castle,unit-queen-fortress"} } )

DefineButton( {Pos = 1, Level = 0, Icon = "icon-move-red-ant-worker",
  Action = "move",
  Key = "m", Hint = "~!MOVE",
  ForUnit = {"unit-scout"} } )

DefineButton( { Pos = 2, Level = 0, Icon = "icon-shield1",
  Action = "stop",
  Key = "s", Hint = "~!STOP",
  ForUnit = {"unit-scout"} } )
  
--DefineButton( { Pos = 3, Level = 0, Icon = "icon-sword1",
--  Action = "attack",
--  Key = "a", Hint = "~!ATTACK",
--ForUnit = {"unit-beetle"} } )

DefineButton( { Pos = 4, Level = 0, Icon = "icon-patrol-land",
  Action = "patrol",
  Key = "p", Hint = "~!PATROL",
  ForUnit = {"unit-scout"} } )

DefineButton( { Pos = 5, Level = 0, Icon = "icon-stand-ground",
  Action = "stand-ground",
  Key = "t", Hint = "S~!TAND GROUND",
  ForUnit = {"unit-scout"} } )



---ui.lua
-- Nothing to add

---ai.lua
-- Complex to add

---campaigns.lua
-- Complex to add

---credits.lua
-- Nothing to add

---tips.lua
-- Nothing to add

---ranks.lua
-- Nothing to add

---menus.lua
-- Nothing to add

---cheats.lua
-- Nothing to add
