Skip to content
This repository has been archived by the owner on Feb 27, 2023. It is now read-only.

Commit

Permalink
Ready for release
Browse files Browse the repository at this point in the history
  • Loading branch information
Cannonb4ll committed Jun 27, 2020
1 parent a4f2df0 commit 73a4f07
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 5 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
* Car crashed into sewers
* Big accident on bridge (Unlimited different locations stretched over a long road)
* Crash with emergency services
* Highway accidents (15 different locations)
* Car crash with fire (4 different locations)

Each callout also brings its own dynamics, which I am of course still working on. The Military transport problems has the most dynamics at this moment.

Expand Down
3 changes: 1 addition & 2 deletions VehicleCollisions/Scenes/HighwayAccident.cs
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,7 @@ internal class HighwayAccident : IScene
public HighwayAccident()
{
// Get a random accident
//AccidentIndex = Utilities.Between(0, AccidentLocations.Length);
AccidentIndex = 14;
AccidentIndex = Utilities.Between(0, AccidentLocations.Length);

// Get the random accident coordinates
RandomCoordinates = AccidentLocations[AccidentIndex];
Expand Down
7 changes: 4 additions & 3 deletions VehicleCollisions/Scenes/SceneFactory.cs
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
namespace VehicleCollisions.Scenes
using VehicleCollisions.Utils;

namespace VehicleCollisions.Scenes
{
public class SceneFactory
{
private readonly int _sceneNumber;

public SceneFactory()
{
_sceneNumber = 13;
//_sceneNumber = Utilities.Between(1, 13);
_sceneNumber = Utilities.Between(1, 13);
}

public IScene GetScene(VehicleCollisions vehicleCollisions)
Expand Down
Binary file modified VehicleCollisions/obj/Debug/VehicleIncidents.net.dll
Binary file not shown.
Binary file modified VehicleCollisions/obj/Debug/VehicleIncidents.net.pdb
Binary file not shown.

0 comments on commit 73a4f07

Please sign in to comment.