Meegu_Run_Control/Triangle.cs
(开头部分) 4KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Drawing;
using Meegu_Run_Class;
namespace Meegu_Run_Control
{
/// <summary>
/// 三角形
/// </summary>
public class Triangle : Road
{
public Triangle(PointF point1, PointF point2, PointF point3)
{
_points = new PointF[] { point1, point2, point3 };
_lines = new Line[] { new Line(point1, point2), new Line(point2, point3), new Line(point1, point3) };
_speed = new Speed();
Random ra = new Random();
_rotation_Side = ra.Next(1) == 1 ? Meegu_Run_Class.Rotation.AntiClockWise : Meegu_Run_Class.Rotation.ClockWise;
}
public Triangle(PointF point1, PointF point2, PointF point3, Speed speed, Rotation rotastion)
{
_points = new PointF[] { point1, point2, point3 };
_lines = new Line[] { new Line(point1, point2), new Line(point2, point3), new Line(point1, point3) };
_speed = speed;
_rotation_Side = rotastion;
}
private PointF[] _points;
private Line[] _lines;
private Rotation _rotation_Side;
private Speed _speed;
public Speed Speed
{
get
{
return _speed;
}
set
{
_speed = value;
}
}
private int _boom_Count;
/// <summary>
/// 三条线
/// </summary>
public Line[] Lines
{
get
{
return _lines;
后面还有 120 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。