Boss
Inherits: IBoss, VRFV2WrapperConsumerBase
State Variables
ROUND_DURATION
uint256 public immutable ROUND_DURATION;
MAX_ITEM_ID
uint256 public constant MAX_ITEM_ID = 4999;
MAX_NUMBER_SQRT
uint256 public immutable MAX_NUMBER_SQRT;
charInfo
mapping(uint256 => mapping(uint256 => Round)) public charInfo;
roundSeed
mapping(uint256 => uint256) public roundSeed;
lastRoundTimestamp
uint256 public lastRoundTimestamp = block.timestamp;
roundId
uint256 public roundId;
_item
IItem public _item;
_char
IChar public _char;
Functions
constructor
constructor(IItem item_, IChar char_, address link_, address vrfV2Wrapper_, uint256 roundDuration_)
VRFV2WrapperConsumerBase(link_, vrfV2Wrapper_);
attackBoss
function attackBoss(uint256 charId_) external override;
claimRewards
function claimRewards(uint256 charId_, uint256 roundId_) external override returns (uint256 itemId_);
previewRewards
function previewRewards(uint256 charId_, uint256 roundId_) external view override returns (uint256 itemId_);
nextRound
function nextRound() public override;
fulfillRandomWords
function fulfillRandomWords(uint256, uint256[] memory _randomWords) internal override;