/* Shipkdm2 - Decompiled by JODE * Visit http://jode.sourceforge.net/ */ package com.maddox.il2.objects.ships; import com.maddox.JGP.Point3d; import com.maddox.il2.ai.World; import com.maddox.il2.ai.ground.TgtShip; import com.maddox.il2.engine.Eff3DActor; import com.maddox.il2.engine.HookNamed; import com.maddox.il2.engine.LightPointActor; import com.maddox.il2.engine.LightPointWorld; import com.maddox.il2.engine.Loc; import com.maddox.rts.SectFile; public abstract class Shipkdm2 extends Ship { /*synthetic*/ static Class class$com$maddox$il2$objects$ships$Shipkdm2$IJNHiryuCV; public static class IJNHiryuCV extends BigshipGeneric implements TgtShip { public LightPointActor light1; public LightPointActor light2; public LightPointActor light3; public LightPointActor light4; public LightPointActor[] lightk; public IJNHiryuCV() { lightk = new LightPointActor[5]; } public IJNHiryuCV(String string, int i, SectFile sectfile, String string_0_, SectFile sectfile_1_, String string_2_) { super(string, i, sectfile, string_0_, sectfile_1_, string_2_); lightk = new LightPointActor[5]; Loc loc = new Loc(0.0, 0.0, 0.0, 0.0F, 0.0F, 0.0F); Loc loc_3_ = new Loc(); Loc loc_4_ = new Loc(); Loc loc_5_ = new Loc(); Loc loc_6_ = new Loc(); Loc loc_7_ = new Loc(); if (World.getTimeofDay() >= 2.5F && World.getTimeofDay() <= 6.0F) { for (int i_8_ = 0; i_8_ < 15; i_8_++) { Eff3DActor.New(this, findHook("_SLightL" + i_8_), null, 1.0F, "3DO/Effects/Lights/FlareWhitek.eff", -1.0F); Eff3DActor.New(this, findHook("_SLightR" + i_8_), null, 1.0F, "3DO/Effects/Lights/FlareWhitek.eff", -1.0F); } for (int i_9_ = 0; i_9_ < 14; i_9_++) Eff3DActor.New(this, findHook("_CLight" + i_9_), null, 1.0F, "3DO/Effects/Lights/FlareWhitek.eff", -1.0F); Eff3DActor.New(this, findHook("_TSLight0"), null, 1.0F, "3DO/Effects/Lights/FlareWhitek.eff", -1.0F); Eff3DActor.New(this, findHook("_MLight0"), null, 1.0F, "3DO/Effects/Lights/FlareWhitekb.eff", -1.0F); Eff3DActor.New(this, findHook("_BRLight0"), null, 1.0F, "3DO/Effects/Lights/FlareWhitek2.eff", -1.0F); for (int i_10_ = 0; i_10_ < 3; i_10_++) { Eff3DActor.New(this, findHook("_TLightL" + i_10_), null, 1.0F, "3DO/Effects/Lights/FlareRedk.eff", -1.0F); Eff3DActor.New(this, findHook("_TLightR" + i_10_), null, 1.0F, "3DO/Effects/Lights/FlareRedk.eff", -1.0F); } for (int i_11_ = 0; i_11_ < 3; i_11_++) Eff3DActor.New(this, findHook("_NLight" + i_11_), null, 1.0F, "3DO/Effects/Lights/FlareWhitek.eff", -1.0F); for (int i_12_ = 0; i_12_ < 5; i_12_++) Eff3DActor.New(this, findHook("_TLight" + i_12_), null, 1.0F, "3DO/Effects/Lights/FlareRedk.eff", -1.0F); Eff3DActor.New(this, findHook("_PLight0"), null, 1.0F, "3DO/Effects/Lights/FlareGreenkb.eff", -1.0F); Eff3DActor.New(this, findHook("_BLight0"), null, 1.0F, "3DO/Effects/Lights/FlareRedkb.eff", -1.0F); for (int i_13_ = 0; i_13_ < 4; i_13_++) Eff3DActor.New(this, findHook("_LILightG" + i_13_), null, 1.0F, "3DO/Effects/Lights/FlareGreenkb.eff", -1.0F); for (int i_14_ = 0; i_14_ < 2; i_14_++) Eff3DActor.New(this, findHook("_LILightR" + i_14_), null, 1.0F, "3DO/Effects/Lights/FlareRedkb.eff", -1.0F); HookNamed hooknamed = new HookNamed(this, "_PLight0"); hooknamed.computePos(this, new Loc(), loc_3_); Point3d point3d = loc_3_.getPoint(); light1 = new LightPointActor(new LightPointWorld(), point3d); light1.light.setColor(0.0F, 1.0F, 0.0F); light1.light.setEmit(2.0F, 8.0F); draw.lightMap().put("_PLight0", light1); HookNamed hooknamed_15_ = new HookNamed(this, "_BLight0"); hooknamed_15_.computePos(this, new Loc(), loc_4_); Point3d point3d_16_ = loc_4_.getPoint(); light2 = new LightPointActor(new LightPointWorld(), point3d_16_); light2.light.setColor(1.0F, 0.0F, 0.0F); light2.light.setEmit(2.0F, 8.0F); draw.lightMap().put("_BLight0", light2); HookNamed hooknamed_17_ = new HookNamed(this, "_BRLight0"); hooknamed_17_.computePos(this, new Loc(), loc_5_); Point3d point3d_18_ = loc_5_.getPoint(); light3 = new LightPointActor(new LightPointWorld(), point3d_18_); light3.light.setColor(1.0F, 0.9F, 0.5F); light3.light.setEmit(1.5F, 6.0F); draw.lightMap().put("_BRLight0", light3); HookNamed hooknamed_19_ = new HookNamed(this, "_DLLightL1"); hooknamed_19_.computePos(this, new Loc(), loc_6_); Point3d point3d_20_ = loc_6_.getPoint(); light4 = new LightPointActor(new LightPointWorld(), point3d_20_); light4.light.setColor(1.0F, 0.9F, 0.5F); light4.light.setEmit(1.5F, 6.0F); draw.lightMap().put("_DLLightL1", light4); for (int i_21_ = 0; i_21_ < 5; i_21_++) { HookNamed hooknamed_22_ = new HookNamed(this, "_DLLightL" + i_21_); loc_7_.set(1.0, 0.0, 0.0, 0.0F, 0.0F, 0.0F); hooknamed_22_.computePos(this, loc, loc_7_); Point3d point3d_23_ = loc_7_.getPoint(); lightk[i_21_] = new LightPointActor(new LightPointWorld(), point3d_23_); lightk[i_21_].light.setColor(1.0F, 0.9F, 0.5F); lightk[i_21_].light.setEmit(2.0F, 8.0F); draw.lightMap().put("_DLLightL" + i_21_, lightk[i_21_]); } } } } /*synthetic*/ static Class class$(String string) { Class var_class; try { var_class = Class.forName(string); } catch (ClassNotFoundException classnotfoundexception) { throw new NoClassDefFoundError(classnotfoundexception .getMessage()); } return var_class; } static { new BigshipGeneric.SPAWN (class$com$maddox$il2$objects$ships$Shipkdm2$IJNHiryuCV == null ? (class$com$maddox$il2$objects$ships$Shipkdm2$IJNHiryuCV = class$("com.maddox.il2.objects.ships.Shipkdm2$IJNHiryuCV")) : class$com$maddox$il2$objects$ships$Shipkdm2$IJNHiryuCV); } }