⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 zexplodingobject.jad

📁 java 编写的小游戏--坦克大战
💻 JAD
字号:
// Decompiled by DJ v2.9.9.60 Copyright 2000 Atanas Neshkov  Date: 2004-12-12 17:50:11
// Home Page : http://members.fortunecity.com/neshkov/dj.html  - Check often for new version!
// Decompiler options: packimports(3) 
// Source File Name:   ZExplodingObject.java


public class ZExplodingObject extends ZObject
{

    public ZExplodingObject()
    {
        super.fNumPolygons = 0;
        super.fX = super.fY = super.fZ = super.fSpeed = super.fXAngle = super.fYAngle = super.fZAngle = 0;
        super.fAction = 1;
        super.fStatus = 1;
        super.fExplodable = true;
        super.fCanBeHitByPlayerBullet = true;
        super.fShouldBeCheckForCollision = true;
    }

    public void DoAction()
    {
        if(super.fAction == 6)
        {
            super.fAction = 3;
            return;
        }
        if(super.fAction == 3)
        {
            super.fAction = 5;
            super.fStatusTimer = 0;
            super.fYSpeed = -15;
            super.fXRotationSpeed = (int)(Math.random() * 80D);
            super.fYRotationSpeed = (int)(Math.random() * 80D);
            super.fZRotationSpeed = (int)(Math.random() * 80D);
            return;
        }
        if(super.fAction == 5)
        {
            super.fYSpeed++;
            if(super.fY >= 10)
            {
                boolean _tmp = super.fStatus == 0;
                super.fAction = 0;
                super.fMaxLifeTime = 0;
                if(super.fType == 1 || super.fType == 4)
                {
                    ExplodeIntoPolygonPieces();
                    ZObject.fWorld.fPlayExplodeSnd = true;
                }
            }
        }
    }
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -