コード例 #1
0
ファイル: BallState.cs プロジェクト: mgiglia92/RLBots
 public BallState(BallInfo ballInfo)
 {
     if (ballInfo.Physics.HasValue)
     {
         PhysicsState = new PhysicsState(ballInfo.Physics.Value);
     }
 }
コード例 #2
0
 public CarState(PhysicsState physicsState = null, bool?jumped = null, bool?doubleJumped = null, float?boost = null)
 {
     PhysicsState = physicsState;
     Jumped       = jumped;
     DoubleJumped = doubleJumped;
     Boost        = boost;
 }
コード例 #3
0
        public CarState(PlayerInfo playerInfo)
        {
            if (playerInfo.Physics.HasValue)
            {
                PhysicsState = new PhysicsState(playerInfo.Physics.Value);
            }

            Jumped       = playerInfo.Jumped;
            DoubleJumped = playerInfo.DoubleJumped;
            Boost        = playerInfo.Boost;
        }
コード例 #4
0
ファイル: BallState.cs プロジェクト: mgiglia92/RLBots
 public BallState(PhysicsState physicsState = null)
 {
     PhysicsState = physicsState;
 }