mirror of
https://github.com/thegeneralist01/Scene-Manager-DevRepo
synced 2026-01-11 07:30:40 +01:00
Refactored fields and properties
This commit is contained in:
parent
fe72d5daf8
commit
6a6b8b5492
1 changed files with 45 additions and 9 deletions
|
|
@ -4,15 +4,15 @@ namespace SceneManager
|
|||
{
|
||||
public class CollectedVehicle
|
||||
{
|
||||
public Vehicle Vehicle;
|
||||
public string LicensePlate;
|
||||
public int Path;
|
||||
public int TotalWaypoints;
|
||||
public int CurrentWaypoint;
|
||||
public bool TasksAssigned;
|
||||
public bool DismissNow;
|
||||
public bool StoppedAtWaypoint;
|
||||
public bool Redirected;
|
||||
public Vehicle Vehicle { get; private set; }
|
||||
public string LicensePlate { get; private set; }
|
||||
public int Path { get; private set; }
|
||||
public int TotalWaypoints { get; private set; }
|
||||
public int CurrentWaypoint { get; private set; }
|
||||
public bool TasksAssigned { get; private set; }
|
||||
public bool DismissNow { get; private set; }
|
||||
public bool StoppedAtWaypoint { get; private set; }
|
||||
public bool Redirected { get; private set; }
|
||||
|
||||
public CollectedVehicle(Vehicle vehicle, string licensePlate, int path, int totalWaypoints, int currentWaypoint, bool tasksAssigned, bool dismissNow, bool redirected)
|
||||
{
|
||||
|
|
@ -25,5 +25,41 @@ namespace SceneManager
|
|||
DismissNow = dismissNow;
|
||||
Redirected = redirected;
|
||||
}
|
||||
|
||||
public void AssignPropertiesFromDirectedTask(int pathNum, int totalPathWaypoints, int currentWaypoint, bool tasksAssigned, bool dismiss, bool stoppedAtWaypoint, bool redirected)
|
||||
{
|
||||
Path = pathNum;
|
||||
TotalWaypoints = totalPathWaypoints;
|
||||
CurrentWaypoint = currentWaypoint;
|
||||
TasksAssigned = tasksAssigned;
|
||||
DismissNow = dismiss;
|
||||
StoppedAtWaypoint = stoppedAtWaypoint;
|
||||
Redirected = redirected;
|
||||
}
|
||||
|
||||
public void SetCurrentWaypoint(int currentWaypoint)
|
||||
{
|
||||
CurrentWaypoint = currentWaypoint;
|
||||
}
|
||||
|
||||
public void SetTasksAssigned(bool tasksAssigned)
|
||||
{
|
||||
TasksAssigned = tasksAssigned;
|
||||
}
|
||||
|
||||
public void SetDismissNow(bool dismissNow)
|
||||
{
|
||||
DismissNow = dismissNow;
|
||||
}
|
||||
|
||||
public void SetStoppedAtWaypoint(bool stoppedAtWaypoint)
|
||||
{
|
||||
StoppedAtWaypoint = stoppedAtWaypoint;
|
||||
}
|
||||
|
||||
public void SetRedirected(bool redirected)
|
||||
{
|
||||
Redirected = redirected;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue