Package com.mygdx.game.Logic
Class Trade
java.lang.Object
com.mygdx.game.Logic.Trade
public class Trade
extends java.lang.Object
Helper class that holds trade data and executes the trade between 2 players
-
Constructor Summary
-
Method Summary
Modifier and Type Method Description void
accept()
Executes the Tradevoid
setReceiverOffer(java.util.ArrayList<CourseSquare> rCourses, int rHours)
Sets the Courses and Hours the receiver is to givevoid
setSenderOffer(java.util.ArrayList<CourseSquare> sCourses, int sHours)
Sets the Courses and Hours the sender is to giveMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
Method Details
-
setSenderOffer
Sets the Courses and Hours the sender is to give- Parameters:
sCourses
- List ofCourseSquare
objectssHours
- Number of hours
-
setReceiverOffer
Sets the Courses and Hours the receiver is to give- Parameters:
rCourses
- List ofCourseSquare
objectsrHours
- Number of hours
-
accept
public void accept()Executes the Trade
-