Debian Codegraph @

units/hotspot/unit-hotspot.lua

raw
1 -- _________ __ __
2 -- / _____// |_____________ _/ |______ ____ __ __ ______
3 -- \_____ \\ __\_ __ \__ \\ __\__ \ / ___\| | \/ ___/
4 -- / \| | | | \// __ \| | / __ \_/ /_/ > | /\___ \
5 -- /_______ /|__| |__| (____ /__| (____ /\___ /|____//____ >
6 -- \/ \/ \//_____/ \/
7 -- ______________________ ______________________
8 -- T H E W A R B E G I N S
9 -- Stratagus - A free fantasy real time strategy game engine
10 --
11 -- unit-hotspot.lua - Define the hot spot unit.
12 --
13 -- (c) Copyright 2007 by Francois Beerten.
14 --
15 -- This program is free software; you can redistribute it and/or modify
16 -- it under the terms of the GNU General Public License as published by
17 -- the Free Software Foundation; either version 2 of the License, or
18 -- (at your option) any later version.
19 --
20 -- This program is distributed in the hope that it will be useful,
21 -- but WITHOUT ANY WARRANTY; without even the implied warranty of
22 -- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
23 -- GNU General Public License for more details.
24 --
25 -- You should have received a copy of the GNU General Public License
26 -- along with this program; if not, write to the Free Software
27 -- Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
28 --
29 -- $Id: unit-tree02.lua 8696 2007-04-07 18:14:35Z feb $
30
31 DefineAnimations("animations-hotspot", {
32 Still = {"frame 0", "wait 100"},
33 Death = {"unbreakable begin", "frame 0", "unbreakable end", "wait 1", },
34 })
35
36 DefineIcon({
37 Name = "icon-hotspot",
38 Size = {46, 38},
39 Frame = 0,
40 File = "units/hotspot/hotspot_i.png"})
41
42 DefineConstruction("construction-hotspot", {
43 Constructions = {
44 {Percent = 0, File = "main", Frame = 0},
45 }
46 })
47
48 DefineUnitType("unit-hotspot", {
49 Name = "Hot Spot",
50 Image = {"file", "units/hotspot/hotspot.png", "size", {64, 64}},
51 Offset = {0, 0},
52 Animations = "animations-hotspot",
53 Icon = "icon-hotspot",
54 Construction = "construction-hotspot",
55 HitPoints = 1,
56 Indestructible = 1,
57 DrawLevel = 2,
58 TileSize = {2, 2},
59 BoxSize = {64, 64},
60 NeutralMinimapColor = {250, 29, 209},
61 SightRange = 0,
62 Armor = 0,
63 BasicDamage = 0,
64 PiercingDamage = 0,
65 Missile = "missile-none",
66 Priority = 0,
67 AnnoyComputerFactor = 0,
68 Points = 0,
69 ExplodeWhenKilled = "missile-64x64-explosion",
70 Corpse = "unit-destroyed-2x2-place",
71 Type = "land",
72 Building = true,
73 VisibleUnderFog = true,
74 Neutral = true,
75 NumDirections = 1,
76 Sounds = {}
77 })
78
79 DefineAllow("unit-hotspot", AllowAll)
80
81
82
83
84
85