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

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


--====================================================================================
---anim.lua
DefineAnimations("animations-bee-warrior",
  "still", {    -- #5
    { 0, 0,   1,   0}, { 3, 0,   1,   5}},
  "move", { -- #16, P32
    { 0, 3,   2,   0}, 
	{ 0, 3,   1,   5}, 
	{ 0, 3,   2,   0}, 
	{ 0, 3,   1,  5},
    	{ 0, 3,   1,  0}, 
	{ 0, 3,   1,   5}, 
	{ 0, 3,   1,   0}, 
	{ 0, 3,   1,  5},
    	{ 0, 3,   1,  0}, 
	{ 3, 3,   1,   5}},
  "attack", {   -- #25
    { 0, 0,   3,  0}, { 0, 0,   3,  5}, { 0, 0,   3,  0},
    { 0, 0,   3,  5},{ 0, 0,   3,  0},{ 0, 0,   3,  5},{ 12, 0,   3,  0}, { 3, 0,   1,   5}},
  "die", {  -- #107
    { 0, 0,   1,  0}, { 0, 0,   1,  5}, { 0, 0, 1,  0}, { 3, 0,   1,  5}})
--====================================================================================
---units.lua
DefineUnitType("unit-bee-warrior", { Name = "Bee Warrior",
  Files = {"tileset-summer", "red-ants/units/unit-bee-warrior.png"},
  Shadow = {"file", "red-ants/units/unit-bee-warrior.png", "size", {72, 72}, "offset", {0, 35}},
  Size = {72, 72},
  Animations = "animations-bee-warrior", Icon = "icon-unit-bee-warrior",
  --Costs = {"time", 60, "sugar", 600, "eggs", 1},
  Costs = {"time", 60, "sugar", 800, "wood", 250},
  Speed = 10,
  HitPoints = 70,
  DrawLevel = 60,
  TileSize = {1, 1}, BoxSize = {31, 31},
  SightRange = 5, ComputerReactionRange = 6, PersonReactionRange = 4,
  Armor = 3, BasicDamage = 8, PiercingDamage = 7, Missile = "missile-none",
 -- Armor-Type = "weak-carapace",
  MaxAttackRange = 1,
  Priority = 60,
  Points = 80,
  Demand = 1,
  Corpse = {"unit-dead-body", 6},
  Type = "fly",
  RightMouseAction = "attack",
  CanAttack = true,
  CanTargetLand = true, CanTargetSea = true, CanTargetAir = true,
  AirUnit = true,
  organic = true,
  ExplodeWhenKilled = "missile-explosion",
  SelectableByRectangle = true,
  Sounds = {
    "selected", "footman-selected",
    "acknowledge", "footman-acknowledge",
    "ready", "footman-ready",
    "help", "basic alliance voices help 1",
    "dead", "basic alliance voices dead",
    "attack", "footman-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-axe-ant"})
DefineModifier("upgrade-sword2",
  {"piercing-damage", 2},
  {"apply-to", "unit-axe-ant"})
-- ]]
DefineAllow("unit-bee-warrior",              		"AAAAAAAAAAAAAAAA")
--DefineDependency("unit-axe-ant",                 {"unit-missile-house"})

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

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


--DefineButton( { Pos = 6, Level = 0, Icon = "icon-unit-bee-warrior",
--  Action = "train-unit", Value = "unit-bee-warrior",
--  Key = "W", Hint = "TRAIN ~!BEE WARRIOR",
--  ForUnit = {"unit-barracks"} } )

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

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

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

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



---ui.lua
-- Nothing to add

---ai.lua
-- Complex to add
--DefineAiHelper(
--{"build", "unit-worker",
--{"train", "unit-missile-house", "unit-acid-ant"}
--{"upgrade", "unit-queen", "unit-queen-castle"},
--{"research", "unit-blacksmith",  "upgrade-sword1",
--{"repair", "unit-worker",
--{"unit-equiv", "unit-knight",  "unit-advanced-knight"},
--)

--unit-name = {priority(0,100),type(AISoldier, AIShooter, AICavalry, AITanks, etc), level(1,2,3),{Dependency(unit-barracks, unit-blacksmith,unit-castle, etc)}}

unit = { 
UnitName = "unit-bee",
UnitPriority = 130,
UnitAIType = "AiEliteShooter",
UnitType = "unit",
Level = 1,
Dependency = {"unit-missile-house"},
ShouldRushToThisUnit= "false"
}
table.insert(UnitsAI,unit)


---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
