--            ____            
--           / __ )____  _____
--          / __  / __ \/ ___/
--         / /_/ / /_/ (__  ) 
--        /_____/\____/____/  
--
--  Invasion - Battle of Survival                  
--   A GPL'd futuristic RTS game
--
--	editor.lua	-	Editor configuration and functions.
--
--	(c) Copyright 2002-2005 by Lutz Sammer, François Beerten and Jimmy Salmon
--
--      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 of the License, 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.
--  
--      You should have received a copy of the GNU General Public License
--      along with this program; if not, write to the Free Software
--      Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
--
--	$Id: editor.lua 216 2005-10-16 08:53:24Z feb $


-- Set which icons to display
SetEditorSelectIcon("icon-patrol")
SetEditorUnitsIcon("icon-assault")

-- Start location unit
DefineIcon({
    Name = "icon-start-location",
    Size = {32, 32},
    Frame = 0,
    File = "ui/x_startpoint.png"})
DefineUnitType("unit-start-location", {
    Name = "Start Location",
    Image = {"file", "ui/x_startpoint.png", "size", {32, 32}},
    Animations = "animations-building", Icon = "icon-start-location",
    Speed = 0, HitPoints = 0, DrawLevel = 0, TileSize = {1, 1},
    BoxSize = {31, 31}, SightRange = 0, BasicDamage = 0, PiercingDamage = 0,
    Missile = "missile-none", Priority = 0, Demand = 0, Type = "land",
   })
SetEditorStartUnit("unit-start-location")

-- editor-unit-types a sorted list of unit-types for the editor.
-- FIXME: this is only a temporary hack, for better sorted units.
DefineEditorUnitTypes({
   "unit-vault",

   "unit-apcs",
   "unit-medic",
   "unit-bazoo",
   "unit-assault",
   "unit-grenadier",
   "unit-engineer",
   "unit-harvester",
   "unit-msilo",
   "unit-dev-yard",
   "unit-gen",
   "unit-camp",
   "unit-rfac",
   "unit-hosp",
   "unit-vfac",
   "unit-gturret",
   "unit-cam",
   "unit-radar",
   "unit-buggy",
   "unit-rtank",
   "unit-tank",
   "unit-artil",
   "unit-chopper",

   "unit-gold-mine",
   "unit-tree",
   "unit-tree02",
   "unit-tree03",
   "unit-tree04",
   "unit-rock-1",
   "unit-rock-2",
   "unit-rock-3",
   "unit-rock-4",
   "unit-rock-5",
   "unit-rock-6",
   "unit-crystal-field1",
   "unit-crystal-field2",
   "unit-crystal-field3",
   "unit-crystal-field4",
   "unit-crystal-field5",
   "unit-crystal-field6",
   "unit-crystal-field7",
   "unit-crystal-field8",
   "unit-crystal-field9",
   "unit-crystal-field10",
   "unit-crystal-field11",   
   "unit-crystal-field12",
   "unit-crystal-field13",
   "unit-antharus"
})

