Overview Package Class Source Class tree Glossary
previous class      next class frames      no frames

USARBot.RFIDReleaser


00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038
00039
00040
00041
00042
00043
00044
00045
00046
class RFIDReleaser extends Effecter;

var config int NumTags; 
var array<RFIDTag> tagList;

function string Set(String opcode, String args)
{
    local RFIDTag stag;
    if (Caps(opcode)=="RELEASE" && NumTags>0) {
        stag=spawn(class'RFIDTag',self,,Location+vect(0,-1,0));
        stag.bSingleShot=false;
        tagList[tagList.length]=stag;
        NumTags -= 1;
        //stag.id=Level.TimeSeconds*1000+1000;
        return "OK";
    } else if (Caps(opcode)=="TAGSREMAINING") {
        return String(NumTags);
    }
    return "Failed";
}

function String GetConfData()
{
    local string outstring;
    outstring = Super.GetConfData();
    outstring = outstring@"{NumTags "$default.NumTags$"}";
    return outstring;
}

simulated event Destroyed()
{
    local int i;

    for (i=0;i<tagList.length;i++)
        tagList[i].Destroy();
    Super.Destroyed();
}

defaultproperties
{
//Scaled with 4.762 at Mon Sep 25 14:21:52 EDT 2006
    ItemType="RFIDReleaser"
    NumTags=100
    drawscale=0.4762
}

Overview Package Class Source Class tree Glossary
previous class      next class frames      no frames
Class file time: Di 26.9.2006 15:50:12.000 - Creation time: Mo 16.4.2007 11:20:52.828 - Created with UnCodeX