Kart.xaml.cs
(开头部分) 8KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
//using System.Windows.Media.Effects;
using GrandPrix.TrackSegments;
// 下载于www.51aspx.com
namespace GrandPrix
{
/// <summary>
/// Interaction logic for Kart.xaml
/// </summary>
public partial class Kart : UserControl
{
#region attributes
public static DependencyProperty WheelAngleProperty = DependencyProperty.Register("WheelAngle", typeof(double), typeof(Kart), new PropertyMetadata(new PropertyChangedCallback(WheelAngleChanged)));
public static DependencyProperty BodyColor1Property = DependencyProperty.Register("BodyColor1", typeof(Color), typeof(Kart), new PropertyMetadata(new PropertyChangedCallback(BodyColor1Changed)));
public static DependencyProperty BodyColor2Property = DependencyProperty.Register("BodyColor2", typeof(Color), typeof(Kart), new PropertyMetadata(new PropertyChangedCallback(BodyColor2Changed)));
public static DependencyProperty BodyColor3Property = DependencyProperty.Register("BodyColor3", typeof(Color), typeof(Kart), new PropertyMetadata(new PropertyChangedCallback(BodyColor3Changed)));
public static DependencyProperty MaxSpeedProperty = DependencyProperty.Register("MaxSpeed", typeof(double), typeof(Kart), new PropertyMetadata(new PropertyChangedCallback(MaxSpeedChanged)));
double maxSpeed = 10.0;
#endregion attributes
#region ctor
public Kart()
{
InitializeComponent();
CarToTrackDistanceList = new List<double>();
ShortestDistance = 10000.0;
LastDistance = 10000.0;
CarGroundType = GroundType.Asphalt;
RangeEllipseList = new List<Ellipse>();
//ShadowEffect = new DropShadowBitmapEffect()
//{
// Color = Colors.Black,
// Direction = 0,
// ShadowDepth = 25,
// Softness = 2,
// Opacity = 0.5
//};
//this.BitmapEffect = ShadowEffect;
CurrentSegmentOffset = 0.0;
Speed = 0.0;
Velocity2D = new Vector(0.0, 0.0);
Laps = 0;
后面还有 169 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。