/* PAir - Decompiled by JODE
* Visit
http://jode.sourceforge.net/
*/
package com.maddox.il2.builder;
import com.maddox.JGP.Point3d;
import com.maddox.il2.engine.Actor;
import com.maddox.il2.engine.IconDraw;
import com.maddox.il2.engine.Mat;
import com.maddox.rts.Property;
public class PAir extends PPoint
{
public static final int NORMFLY = 0;
public static final int TAKEOFF = 1;
public static final int LANDING = 2;
public static final int GATTACK = 3;
public static final int FORMATTIONK = 4;
public static final int FORMATTIONCAPSULE = 5;
public static final int setNavLightsState = 6;
public static final int setLandingLightState = 7;
public static final int Smoke = 8;
public static final int NoSmoke = 9;
public static final int BombsOuntPaint = 10;
public static final int EchelonLeft = 11;
public static final int EchelonRight = 12;
public static final int Vic = 13;
public static final int ledge = 14;
public static final int LineAbreast = 15;
public static final int GaerOn = 16;
public static final int TAKEOFF2 = 17;
public static final int Stabilizer = 18;
public static final int AileronTurnLeftAndsetNavLightsState = 19;
public static final int AileronTurnRightAndsetNavLightsState = 20;
public static final int Power110 = 21;
public static final int Power100 = 22;
public static final int Power95 = 23;
public static final int Power90 = 24;
public static final int Power85 = 25;
public static final int Power80 = 26;
public static final int Power75 = 27;
public static final int Power70 = 28;
public static final int Power65 = 29;
public static final int Power60 = 30;
public static final int Power55 = 31;
public static final int Power50 = 32;
public static final int Power45 = 33;
public static final int Power40 = 34;
public static final int Power35 = 35;
public static final int Power30 = 36;
public static final int Power25 = 37;
public static final int Power20 = 38;
public static final int Power15 = 39;
public static final int Power10 = 40;
public static final int Power5 = 41;
public static final int Circle = 42;
public static final int GATTACKON1 = 43;
public static final int GATTACKON2 = 44;
public static final int GATTACKON3 = 45;
public static final int GATTACKON4 = 46;
public static final int ALL_COVER_FIRST = 47;
public static final int AttackIn2KMH = 48;
public static final int ATTACKFighter = 49;
public static final int ATTACKPlayerGTarget = 50;
public static final int Test = 51;
public static final String[] types
= { "NORMFLY", "TAKEOFF", "LANDING", "GATTACK", "Колонна", "Коробочка", "Включить АНО", "Включить посадочную фару", "Включить дымы", "Выключить дымы", "Точка сброса бомб", "Левый Пеленг", "Правый Пеленг", "Клин", "Уступом Вправо", "Шеренга", "Выпустить Шасси", "Разрешить свободный взлет с аэродрома", "Автомат горизонта", "Крен в лево + Мигание АНО", "Крен в право + Мигание АНО", "Тяга110%", "Тяга100%", "Тяга95%", "Тяга90%", "Тяга85%", "Тяга80%", "Тяга75%", "Тяга70%", "Тяга65%", "Тяга60%", "Тяга55%", "Тяга50%", "Тяга45%", "Тяга40%", "Тяга35%", "Тяга30%", "Тяга25%", "Тяга20%", "Тяга15%", "Тяга10%", "Тяга5%", "Оборонительный Круг", "Цель для 1вого", "Цель для 2вого", "Цель для 3вого", "Цель для 4вого", "Все прикрывают Ведущего", "Атака с 2КМ", "Атакавать Воздушную цель", "Атакавать мою цель", "Тест"};
private int type;
public double height;
public double speed;
private Actor target = null;
public String sTarget = null;
public int iTarget = 0;
public boolean bRadioSilence = false;
public void setType(int i) {
type = i;
setIcon();
}
public int type() {
return type;
}
public Actor getTarget() {
if (Actor.isValid(target))
return target;
if (sTarget != null) {
Actor actor = Actor.getByName(sTarget);
if (Actor.isValid(actor)) {
if (actor instanceof Path) {
Path path = (Path) actor;
if (iTarget >= path.points())
iTarget = path.points() - 1;
if (iTarget < 0) {
iTarget = 0;
sTarget = null;
target = null;
} else {
PPoint ppoint = path.point(iTarget);
target = ppoint;
}
} else
target = actor;
return target;
}
sTarget = null;
}
target = null;
return null;
}
public void setTarget(Actor actor) {
target = actor;
if (target != null) {
if (type != 1 && type != 2) {
if (target instanceof PAir)
setType(0);
else
setType(3);
} else if (target instanceof PPoint) {
if (target.getOwner() instanceof PathChief) {
PathChief pathchief = (PathChief) target.getOwner();
if (!PlMisChief.isAirport(pathchief._iType,
pathchief._iItem))
target = null;
} else
target = null;
} else if (!"true".equals(Property.stringValue(target.getCla ss(),
"IsAirport", null)))
target = null;
}
}
public void destroy() {
target = null;
sTarget = null;
Path path = (Path) getOwner();
super.destroy();
if (path != null)
path.computeTimes();
}
public PAir(Path path, PPoint ppoint, Mat mat, Point3d point3d, int i,
double d, double d_0_) {
super(path, ppoint, mat, point3d);
setType(i);
height = d;
speed = d_0_;
path.computeTimes();
}
public PAir(Path path, PPoint ppoint, Point3d point3d, int i, double d,
double d_1_) {
this(path, ppoint, (Mat) null, point3d, i, d, d_1_);
}
public PAir(Path path, PPoint ppoint, String string, Point3d point3d,
int i, double d, double d_2_) {
this(path, ppoint, IconDraw.get(string), point3d, i, d, d_2_);
}
private void setIcon() {
Object object = null;
String string;
switch (type) {
case 0:
string = "normfly";
break;
case 1:
string = "takeoff";
break;
case 2:
string = "landing";
break;
case 3:
string = "gattack";
break;
case 4:
string = "normfly";
break;
case 5:
string = "normfly";
break;
case 6:
string = "normfly";
break;
case 7:
string = "normfly";
break;
case 8:
string = "normfly";
break;
case 9:
string = "normfly";
break;
case 10:
string = "gattack";
break;
case 11:
string = "normfly";
break;
case 12:
string = "normfly";
break;
case 13:
string = "normfly";
break;
case 14:
string = "normfly";
break;
case 15:
string = "normfly";
break;
case 16:
string = "normfly";
break;
case 17:
string = "normfly";
break;
case 18:
string = "normfly";
break;
case 19:
string = "normfly";
break;
case 20:
string = "normfly";
break;
case 21:
string = "normfly";
break;
case 22:
string = "normfly";
break;
case 23:
string = "normfly";
break;
case 24:
string = "normfly";
break;
case 25:
string = "normfly";
break;
case 26:
string = "normfly";
break;
case 27:
string = "normfly";
break;
case 28:
string = "normfly";
break;
case 29:
string = "normfly";
break;
case 30:
string = "normfly";
break;
case 31:
string = "normfly";
break;
case 32:
string = "normfly";
break;
case 33:
string = "normfly";
break;
case 34:
string = "normfly";
break;
case 35:
string = "normfly";
break;
case 36:
string = "normfly";
break;
case 37:
string = "normfly";
break;
case 38:
string = "normfly";
break;
case 39:
string = "normfly";
break;
case 40:
string = "normfly";
break;
case 41:
string = "normfly";
break;
case 42:
string = "normfly";
break;
case 43:
string = "gattack";
break;
case 44:
string = "gattack";
break;
case 45:
string = "gattack";
break;
case 46:
string = "gattack";
break;
default:
return;
}
icon = IconDraw.get("icons/" + string + ".mat");
}
}
Вот весь файл правте прямо там все русское.