Last change
on this file since 272 was 272, checked in by Tim Baarslag, 5 years ago |
Bundle immutable. Made aggregation work.
|
File size:
359 bytes
|
Rev | Line | |
---|
[270] | 1 | package onetomany.bargainingchipsgame.interactions;
|
---|
| 2 |
|
---|
[272] | 3 | import onetomany.bargainingchipsgame.BundleBuilder;
|
---|
[270] | 4 |
|
---|
| 5 | /**
|
---|
| 6 | * Just a sample example of an offer
|
---|
| 7 | */
|
---|
| 8 | public class SampleOffer extends Offer
|
---|
| 9 | {
|
---|
| 10 | public SampleOffer(int qty)
|
---|
| 11 | {
|
---|
| 12 | this.type = MessageType.BID;
|
---|
[272] | 13 | this.bundle = new BundleBuilder()
|
---|
| 14 | .addStack("Red", 7.0, qty)
|
---|
| 15 | .build();
|
---|
[270] | 16 | }
|
---|
| 17 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.