コード例 #1
0
        public void Go()
        {
            csai       = CSAI.GetInstance();
            aicallback = csai.aicallback;
            logfile    = LogFile.GetInstance();

            csai.RegisterVoiceCommand("dumppoints", new CSAI.VoiceCommandHandler(this.DumpPoints));
            csai.RegisterVoiceCommand("drawradii", new CSAI.VoiceCommandHandler(this.DrawRadii));
        }
コード例 #2
0
        // note: sector size for scout probably should be 4 times larger than radar map squaresize, ie should be 256 * 256 mappos

        public void Go()
        {
            csai       = CSAI.GetInstance();
            aicallback = csai.aicallback;
            logfile    = LogFile.GetInstance();

            csai.TickEvent += new CSAI.TickHandler(Tick);

            csai.RegisterVoiceCommand("dumplos", new CSAI.VoiceCommandHandler(this.DumpLos));
            csai.RegisterVoiceCommand("dumpradar", new CSAI.VoiceCommandHandler(this.DumpRadar));
            csai.RegisterVoiceCommand("dumpcentreheights", new CSAI.VoiceCommandHandler(this.DumpCentreHeights));
            csai.RegisterVoiceCommand("dumpfeatures", new CSAI.VoiceCommandHandler(this.DumpFeaturesMap));
            csai.RegisterVoiceCommand("dumpslopes", new CSAI.VoiceCommandHandler(this.DumpSlopes));
            csai.RegisterVoiceCommand("dumpbuildmap", new CSAI.VoiceCommandHandler(this.DumpBuildMap));
            csai.RegisterVoiceCommand("dumpmovementareas", new CSAI.VoiceCommandHandler(this.DumpMovementAreas));
            csai.RegisterVoiceCommand("dumplosmap", new CSAI.VoiceCommandHandler(this.DumpLosMap));
        }