refactor Targetable into Targetable{Unit,Building} and ITargetable

This commit is contained in:
Bob
2010-11-03 22:28:53 +13:00
committed by Chris Forbes
parent 98dec6dc8e
commit 39b09780f6
15 changed files with 106 additions and 84 deletions

View File

@@ -12,7 +12,7 @@
ROT: 5
Selectable:
Voice: VehicleVoice
Targetable:
TargetableUnit:
TargetTypes: Ground
Buildable:
Queue: Vehicle
@@ -43,7 +43,7 @@
ROT: 5
Selectable:
Voice: VehicleVoice
Targetable:
TargetableUnit:
TargetTypes: Ground
Buildable:
Queue: Vehicle
@@ -63,7 +63,7 @@
^Helicopter:
AppearsOnRadar:
UseLocation: yes
Targetable:
TargetableUnit:
TargetTypes: Air
Selectable:
Voice: VehicleVoice
@@ -100,7 +100,7 @@
Beach: 80
Selectable:
Voice: GenericVoice
Targetable:
TargetableUnit:
TargetTypes: Ground
Buildable:
Queue: Infantry
@@ -146,7 +146,7 @@
UseLocation: yes
Selectable:
Voice: GenericVoice
Targetable:
TargetableUnit:
TargetTypes: Air
HiddenUnderFog:
GainsExperience:
@@ -163,7 +163,7 @@
Water: 100
Selectable:
Voice: GenericVoice
Targetable:
TargetableUnit:
TargetTypes: Ground, Water
HiddenUnderFog:
GainsExperience:
@@ -177,7 +177,7 @@
AppearsOnRadar:
Selectable:
Priority: 3
Targetable:
TargetableBuilding:
TargetTypes: Ground
Armor:
Type: Wood
@@ -242,7 +242,7 @@
DamagedSound: xplos.aud
DestroyedSound: xplobig4.aud
Adjacent: 7
Targetable:
TargetableBuilding:
TargetTypes: Ground
Wall:
CrushClasses: wall
@@ -293,7 +293,7 @@
^Bridge:
Tooltip:
Name: Bridge
Targetable:
TargetableBuilding:
TargetTypes: Ground, Water
BelowUnits:
Health:

View File

@@ -446,6 +446,9 @@ STNK:
PrimaryWeapon: 227mm
RenderUnit:
AutoTarget:
-TargetableUnit:
TargetableCloaked:
CloakedTargetTypes: cloaked
TRAN:
Inherits: ^Helicopter
@@ -565,7 +568,7 @@ C17:
Passengers: 10
Invulnerable:
-Selectable:
-Targetable:
-TargetableUnit:
-GainsExperience:
FlyAwayOnIdle:

View File

@@ -11,7 +11,7 @@
ROT: 5
Selectable:
Voice: VehicleVoice
Targetable:
TargetableUnit:
TargetTypes: Ground
Repairable:
Chronoshiftable:
@@ -39,7 +39,7 @@
ROT: 5
Selectable:
Voice: VehicleVoice
Targetable:
TargetableUnit:
TargetTypes: Ground
Repairable:
Chronoshiftable:
@@ -71,7 +71,7 @@
Beach: 80
Selectable:
Voice: GenericVoice
Targetable:
TargetableUnit:
TargetTypes: Ground
RenderInfantry:
AutoTarget:
@@ -94,7 +94,7 @@
Water: 100
Selectable:
Voice: ShipVoice
Targetable:
TargetableUnit:
TargetTypes: Ground, Water
DetectCloaked:
Range: 3
@@ -157,7 +157,7 @@
Range: 8
Selectable:
Priority: 1
Targetable:
TargetableBuilding:
TargetTypes: Ground
RenderBuildingWall:
HasMakeAnimation: false
@@ -208,7 +208,7 @@
Tooltip:
Name: Bridge
BelowUnits:
Targetable:
TargetableBuilding:
TargetTypes: Ground, Water
Building:
Footprint: ____ ____

View File

@@ -68,7 +68,7 @@ SPEN:
Prerequisites: @Power Plant
Owner: soviet
Hotkey: s
Targetable:
TargetableBuilding:
TargetTypes: Ground, Water
Building:
Power: -30
@@ -123,7 +123,7 @@ SYRD:
Tooltip:
Name: Shipyard
Description: Produces and repairs ships
Targetable:
TargetableBuilding:
TargetTypes: Ground, Water
Building:
Power: -30
@@ -964,7 +964,7 @@ SYRF:
# Description: Fake Shipyard
# LongDesc: Looks like a Shipyard
# Hotkey: z
Targetable:
TargetableBuilding:
TargetTypes: Ground, Water
Building:
Power: -2
@@ -985,7 +985,7 @@ SYRF:
SPEF:
Inherits: ^Building
Targetable:
TargetableBuilding:
TargetTypes: Ground, Water
Building:
Power: -2

View File

@@ -480,7 +480,7 @@ SS:
Speed: 5
RevealsShroud:
Range: 6
-Targetable:
-TargetableUnit:
TargetableCloaked:
TargetTypes: Ground, Water
CloakedTargetTypes: Underwater
@@ -523,7 +523,7 @@ MSUB:
RevealsShroud:
Range: 6
RenderUnit:
-Targetable:
-TargetableUnit:
TargetableCloaked:
TargetTypes: Ground, Water
CloakedTargetTypes: Underwater