• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

C# robocode类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C#中robocode的典型用法代码示例。如果您正苦于以下问题:C# robocode类的具体用法?C# robocode怎么用?C# robocode使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



robocode类属于命名空间,在下文中一共展示了robocode类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。

示例1: BattleSpecification

 public BattleSpecification(int par0, global::robocode.control.BattlefieldSpecification par1, robocode.control.RobotSpecification[] par2) : 
         base(((global::net.sf.jni4net.jni.JNIEnv)(null))) {
     global::net.sf.jni4net.jni.JNIEnv @__env = global::net.sf.jni4net.jni.JNIEnv.ThreadEnv;
     using(new global::net.sf.jni4net.jni.LocalFrame(@__env, 16)){
     @__env.NewObject(global::robocode.control.BattleSpecification.staticClass, global::[email protected]__ctorBattleSpecification8, this, global::net.sf.jni4net.utils.Convertor.ParPrimC2J(par0), global::net.sf.jni4net.utils.Convertor.ParStrongCp2J(par1), global::net.sf.jni4net.utils.Convertor.ParArrayStrongCp2J(@__env, par2));
     }
 }
开发者ID:jccjames422,项目名称:SRE-RoboCode,代码行数:7,代码来源:BattleSpecification.generated.cs


示例2: BattleSpecification

 public BattleSpecification(global::robocode.control.BattlefieldSpecification par0, int par1, long par2, double par3, int par4, bool par5, robocode.control.RobotSpecification[] par6, robocode.control.RobotSetup[] par7) : 
         base(((global::net.sf.jni4net.jni.JNIEnv)(null))) {
     global::net.sf.jni4net.jni.JNIEnv @__env = global::net.sf.jni4net.jni.JNIEnv.ThreadEnv;
     using(new global::net.sf.jni4net.jni.LocalFrame(@__env, 26)){
     @__env.NewObject(global::robocode.control.BattleSpecification.staticClass, global::robocode.control.BattleSpecification.j4n__ctorBattleSpecification11, this, global::net.sf.jni4net.utils.Convertor.ParStrongCp2J(par0), global::net.sf.jni4net.utils.Convertor.ParPrimC2J(par1), global::net.sf.jni4net.utils.Convertor.ParPrimC2J(par2), global::net.sf.jni4net.utils.Convertor.ParPrimC2J(par3), global::net.sf.jni4net.utils.Convertor.ParPrimC2J(par4), global::net.sf.jni4net.utils.Convertor.ParPrimC2J(par5), global::net.sf.jni4net.utils.Convertor.ParArrayStrongCp2J(@__env, par6), global::net.sf.jni4net.utils.Convertor.ParArrayStrongCp2J(@__env, par7));
     }
 }
开发者ID:markthor,项目名称:robocode,代码行数:7,代码来源:BattleSpecification.generated.cs


示例3: MapRobotSnapshots

        private static IRobotSnapshot[] MapRobotSnapshots(robocode.control.snapshot.IRobotSnapshot[] robotSnapshots)
        {
            if (robotSnapshots == null)
            {
                return null;
            }

            IRobotSnapshot[] mappedSnapshots = new IRobotSnapshot[robotSnapshots.Length];

            for (int i = 0; i < robotSnapshots.Length; i++)
            {
                mappedSnapshots[i] = MapRobotSnapshot(robotSnapshots[i]);
            }
            return mappedSnapshots;
        }
开发者ID:khangnguyen,项目名称:robocode,代码行数:15,代码来源:RobocodeEngine.cs


示例4: RobotSpecification

 internal RobotSpecification(robocode.control.RobotSpecification robotSpecification)
 {
     this.robotSpecification = robotSpecification;
 }
开发者ID:jccjames422,项目名称:SRE-RoboCode,代码行数:4,代码来源:RobotSpecification.cs


示例5: onTurnStarted

 public void onTurnStarted(robocode.control.events.TurnStartedEvent evnt)
 {
     engine.OnTurnStarted(new TurnStartedEvent());
 }
开发者ID:khangnguyen,项目名称:robocode,代码行数:4,代码来源:RobocodeEngine.cs


示例6: MapRobotState

 private static RobotState MapRobotState(robocode.control.snapshot.RobotState robotState)
 {
     switch (robotState.getValue())
     {
         case 0:
             return RobotState.Active;
         case 1:
             return RobotState.HitWall;
         case 2:
             return RobotState.HitRobot;
         case 3:
         default:
             return RobotState.Dead;
     }
 }
开发者ID:khangnguyen,项目名称:robocode,代码行数:15,代码来源:RobocodeEngine.cs


示例7: TurnSnapshot

 public TurnSnapshot(robocode.control.snapshot.ITurnSnapshot turnSnapshot)
 {
     this.turnSnapshot = turnSnapshot;
 }
开发者ID:khangnguyen,项目名称:robocode,代码行数:4,代码来源:RobocodeEngine.cs


示例8: MapBulletSnapshots

        private static IBulletSnapshot[] MapBulletSnapshots(robocode.control.snapshot.IBulletSnapshot[] bulletSnapshots)
        {
            if (bulletSnapshots == null)
            {
                return null;
            }

            IBulletSnapshot[] mappedSnapshots = new IBulletSnapshot[bulletSnapshots.Length];

            for (int i = 0; i < bulletSnapshots.Length; i++)
            {
                mappedSnapshots[i] = MapBulletSnapshot(bulletSnapshots[i]);
            }
            return mappedSnapshots;
        }
开发者ID:khangnguyen,项目名称:robocode,代码行数:15,代码来源:RobocodeEngine.cs


示例9: MapDebugProperties

        private static IDebugProperty[] MapDebugProperties(robocode.control.snapshot.IDebugProperty[] debugProperties)
        {
            if (debugProperties == null)
            {
                return null;
            }

            IDebugProperty[] mappedProperties = new IDebugProperty[debugProperties.Length];

            for (int i = 0; i < debugProperties.Length; i++)
            {
                mappedProperties[i] = MapDebugProperty(debugProperties[i]);
            }
            return mappedProperties;
        }
开发者ID:khangnguyen,项目名称:robocode,代码行数:15,代码来源:RobocodeEngine.cs


示例10: MapEvent

 private static BattleCompletedEvent MapEvent(robocode.control.events.BattleCompletedEvent evnt)
 {
     return new BattleCompletedEvent(MapBattleRules(evnt.getBattleRules()), MapBattleResults(evnt.getIndexedResults()));
 }
开发者ID:khangnguyen,项目名称:robocode,代码行数:4,代码来源:RobocodeEngine.cs


示例11: onBattleError

 public void onBattleError(robocode.control.events.BattleErrorEvent evnt)
 {
     engine.OnBattleError(MapEvent(evnt));
 }
开发者ID:khangnguyen,项目名称:robocode,代码行数:4,代码来源:RobocodeEngine.cs


示例12: onBattleMessage

 public void onBattleMessage(robocode.control.events.BattleMessageEvent evnt)
 {
     engine.OnBattleMessage(MapEvent(evnt));
 }
开发者ID:khangnguyen,项目名称:robocode,代码行数:4,代码来源:RobocodeEngine.cs


示例13: onTurnEnded

 public void onTurnEnded(robocode.control.events.TurnEndedEvent evnt)
 {
     engine.OnTurnEnded(MapEvent(evnt));
 }
开发者ID:khangnguyen,项目名称:robocode,代码行数:4,代码来源:RobocodeEngine.cs


示例14: MapRobotSnapshot

 private static IRobotSnapshot MapRobotSnapshot(robocode.control.snapshot.IRobotSnapshot robotSnapshot)
 {
     return new RobotSnapshot(robotSnapshot);
 }
开发者ID:khangnguyen,项目名称:robocode,代码行数:4,代码来源:RobocodeEngine.cs


示例15: MapScoreSnapshot

 private static IScoreSnapshot MapScoreSnapshot(robocode.control.snapshot.IScoreSnapshot scoreSnapshot)
 {
     return new ScoreSnapshot(scoreSnapshot);
 }
开发者ID:khangnguyen,项目名称:robocode,代码行数:4,代码来源:RobocodeEngine.cs


示例16: MapBulletSnapshot

 private static IBulletSnapshot MapBulletSnapshot(robocode.control.snapshot.IBulletSnapshot bulletSnapshot)
 {
     return new BulletSnapshot(bulletSnapshot);
 }
开发者ID:khangnguyen,项目名称:robocode,代码行数:4,代码来源:RobocodeEngine.cs


示例17: MapDebugProperty

 private static IDebugProperty MapDebugProperty(robocode.control.snapshot.IDebugProperty debugProperty)
 {
     return new DebugProperty(debugProperty.getKey(), debugProperty.getValue());
 }
开发者ID:khangnguyen,项目名称:robocode,代码行数:4,代码来源:RobocodeEngine.cs


示例18: MapBulletState

 private static BulletState MapBulletState(robocode.control.snapshot.BulletState bulletState)
 {
     switch (bulletState.getValue())
     {
         case 0:
             return BulletState.Fired;
         case 1:
             return BulletState.Moving;
         case 2:
             return BulletState.HitVictim;
         case 3:
             return BulletState.HitBullet;
         case 4:
             return BulletState.HitWall;
         case 5:
             return BulletState.Exploded;
         case 6:
         default:
             return BulletState.Inactive;
     }
 }
开发者ID:khangnguyen,项目名称:robocode,代码行数:21,代码来源:RobocodeEngine.cs


示例19: onBattleResumed

 public void onBattleResumed(robocode.control.events.BattleResumedEvent evnt)
 {
     engine.OnBattleResumed(new BattleResumedEvent());
 }
开发者ID:khangnguyen,项目名称:robocode,代码行数:4,代码来源:RobocodeEngine.cs


示例20: RobotSnapshot

 public RobotSnapshot(robocode.control.snapshot.IRobotSnapshot robotSnapshot)
 {
     this.robotSnapshot = robotSnapshot;
 }
开发者ID:khangnguyen,项目名称:robocode,代码行数:4,代码来源:RobocodeEngine.cs



注:本文中的robocode类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# rowIds类代码示例发布时间:2022-05-24
下一篇:
C# rcommstate类代码示例发布时间:2022-05-24
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap