Добавьте файлы проекта.
This commit is contained in:
parent
6fce43b6dc
commit
342a5b4f01
22
carCAR.sln
Normal file
22
carCAR.sln
Normal file
@ -0,0 +1,22 @@
|
||||
|
||||
Microsoft Visual Studio Solution File, Format Version 12.00
|
||||
# Visual Studio Version 17
|
||||
VisualStudioVersion = 17.12.35506.116 d17.12
|
||||
MinimumVisualStudioVersion = 10.0.40219.1
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ProjectSportCar", "carCAR\ProjectSportCar.csproj", "{EC7DC4ED-8873-4E6E-9D8E-34692629D7CF}"
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
Debug|Any CPU = Debug|Any CPU
|
||||
Release|Any CPU = Release|Any CPU
|
||||
EndGlobalSection
|
||||
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||
{EC7DC4ED-8873-4E6E-9D8E-34692629D7CF}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{EC7DC4ED-8873-4E6E-9D8E-34692629D7CF}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{EC7DC4ED-8873-4E6E-9D8E-34692629D7CF}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{EC7DC4ED-8873-4E6E-9D8E-34692629D7CF}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
EndGlobalSection
|
||||
GlobalSection(SolutionProperties) = preSolution
|
||||
HideSolutionNode = FALSE
|
||||
EndGlobalSection
|
||||
EndGlobal
|
43
carCAR/Car.cs
Normal file
43
carCAR/Car.cs
Normal file
@ -0,0 +1,43 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Drawing;
|
||||
using System.Linq;
|
||||
using System.Reflection;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace ProjectSportCar
|
||||
{
|
||||
public class EntitySportcar
|
||||
{
|
||||
//скорость
|
||||
public int Speed { get; private set; }
|
||||
//вес
|
||||
public double Weight { get; private set; }
|
||||
// основной цвет
|
||||
public Color BodyColor { get; private set; }
|
||||
// дополнительный цвет
|
||||
public Color AdditionalColor { get; private set; }
|
||||
// Признак наличия обвеса
|
||||
public bool BodyKit { get; private set; }
|
||||
// Признак наличия антикрыла
|
||||
public bool Wing { get; private set; }
|
||||
// Признак наличия гоночной полосы
|
||||
public bool SportLine { get; private set; }
|
||||
// Шаг перемещения автомобиля
|
||||
public double Step => Speed * 100 / Weight;
|
||||
|
||||
public void Init(int speed, double weight, Color bodyColor,
|
||||
Color additionalColor, bool bodyKit, bool wing, bool sportLine)
|
||||
{
|
||||
Speed = speed;
|
||||
Weight = weight;
|
||||
BodyColor = bodyColor;
|
||||
AdditionalColor = additionalColor;
|
||||
BodyKit = bodyKit;
|
||||
Wing = wing;
|
||||
SportLine = sportLine;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
16
carCAR/DirectionType.cs
Normal file
16
carCAR/DirectionType.cs
Normal file
@ -0,0 +1,16 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace ProjectSportCar
|
||||
{
|
||||
public enum DirectionType
|
||||
{
|
||||
Up =1,
|
||||
Down =2,
|
||||
Left =3,
|
||||
Right =4
|
||||
}
|
||||
}
|
13
carCAR/DrawningSportcar.cs
Normal file
13
carCAR/DrawningSportcar.cs
Normal file
@ -0,0 +1,13 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace ProjectSportCar
|
||||
{
|
||||
public class DrawningSportcar
|
||||
{
|
||||
|
||||
}
|
||||
}
|
10
carCAR/ProjectSportCar.csproj
Normal file
10
carCAR/ProjectSportCar.csproj
Normal file
@ -0,0 +1,10 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<OutputType>Exe</OutputType>
|
||||
<TargetFramework>net8.0</TargetFramework>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<Nullable>enable</Nullable>
|
||||
</PropertyGroup>
|
||||
|
||||
</Project>
|
Loading…
x
Reference in New Issue
Block a user