Buckets:
| bool CountMission::check_mission_complete(Trip &_trip) | |
| { | |
| if (TargetNumber <= CompleteNumber) | |
| { | |
| Status = true; | |
| EndTimeStamp = _trip.EndTimeStamp; | |
| return true; | |
| } | |
| return false; | |
| } | |
| CountMission::CountMission(int _mission_id, int _start_time_stamp, int _end_time_stemp, int _Reward_amount, int _target_number) | |
| { | |
| MissionID = _mission_id; | |
| StartTimeStamp = _start_time_stamp; | |
| EndTimeStamp = _end_time_stemp; | |
| RewardAmount = _Reward_amount; | |
| TargetNumber = _target_number; | |
| } | |
| bool CountMission::Add_trip(Trip &_trip) | |
| { | |
| if (!is_trip_valid(_trip)) | |
| return false; | |
| bool PreviousState = Status; | |
| CompleteNumber++; | |
| return check_mission_complete(_trip) && !PreviousState; | |
| } | |
Xet Storage Details
- Size:
- 780 Bytes
- Xet hash:
- d67b12ced176f759d6c7cb6bef3e087e332d1c08c62451c7e660b59f3350444f
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.