Last change
on this file since 82 was 81, checked in by Bart Vastenhouw, 3 years ago |
Added python timedependent parties (conceder, hardliner, etc)
|
File size:
736 bytes
|
Rev | Line | |
---|
[81] | 1 | from typing import Any, Dict
|
---|
| 2 | from geniusweb.actions.ActionWithBid import ActionWithBid
|
---|
| 3 | from geniusweb.actions.PartyId import PartyId
|
---|
| 4 | from geniusweb.issuevalue.Bid import Bid
|
---|
| 5 |
|
---|
| 6 | class Accept (ActionWithBid):
|
---|
| 7 | '''
|
---|
| 8 | An accept done by some party indicates that that party agrees with the bid.
|
---|
| 9 | Usually the contained {@link Bid} must be a bid that was previously
|
---|
| 10 | {@link Offer}ed by some party.
|
---|
| 11 | '''
|
---|
| 12 | def __init__(self,actor:PartyId ,bid:Bid):
|
---|
| 13 | '''
|
---|
| 14 | @param id the accepting party.
|
---|
| 15 | @param bid the bid that was offered before (usually by some other Party )
|
---|
| 16 | FIXME stronger typing using Bid class
|
---|
| 17 | '''
|
---|
| 18 | super().__init__(actor, bid);
|
---|
| 19 |
|
---|
| 20 | def __repr__(self)->str:
|
---|
| 21 | return("Accept[" + str(self.getActor()) + "," + str(self.getBid()) + "]")
|
---|
| 22 |
|
---|
| 23 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.