Package RoFParser.AType

Examples of RoFParser.AType.Damage


    public static ArrayList<DBDamage> GetDamage(RoFParser.Mission mission)
    {
        ArrayList<DBDamage> damages = new ArrayList<DBDamage>();
       
        ArrayList<Damage> dEvents = mission.getDamage();
        Damage damage;
        int i = 1;
        float[] tmpPos;
       
        Iterator<Damage> dmgit = dEvents.iterator();
        while (dmgit.hasNext())
        {
            damage = dmgit.next();
            tmpPos = damage.getPosition();
           
            //add damage
            DBDamage tmpDmg = new DBDamage(i, mission.getMissionID(),
                    damage.getAttackerID(), damage.getTargetID(), damage.getTick(),
                    damage.getDamage(), tmpPos[0], tmpPos[1], tmpPos[2]);
            damages.add(tmpDmg);
            i++;
        }
       
        return damages;
View Full Code Here

TOP

Related Classes of RoFParser.AType.Damage

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.