private Kast CreateKast(double x, double y, double z, Hraph huidigeLocatie) { Kast d = new Kast(x, y, z, 0, 0, 0, huidigeLocatie); worldObjects.Add(d); kastLijst.Add(d); return(d); }
/// <summary> /// GetPutDown is called when the Robot carrying the Kast wants to drop the Kast /// Depending on the destinationLocation preoperty the kast moves itself to the place it is stupposed to be dropped off /// Which is exactly where the robot has carried him, hopefully. /// If the Kast is dropped off at the depot, it is treated as old cargo, and to be picked up next time the Dumptruck arrives. /// </summary> public void GetPutDown() { this.Move(destinationLocation.x, 3, destinationLocation.z); currentLocation = new Hraph(destinationLocation.x, 3, destinationLocation.z, destinationLocation.nodeName, true); if (destinationLocation.nodeName == "vrachtdepot") { actorStatus = "InDepotOud"; } else { actorStatus = "opgeslagen"; } }
/// <summary> /// Sets the destination property based on the paramater supplied /// </summary> /// <param name="destination"></param> public void ZetBestemming(Hraph destination) { destinationLocation = destination; }
public Kast(double x, double y, double z, double rotationX, double rotationY, double rotationZ, Hraph huidigeLocatie) : base(x, y, z, rotationX, rotationY, rotationZ, "kast") { this.currentLocation = huidigeLocatie; }