Constructor
new TrophyFirstStrike(gun, enemyFleet)
Make a first strike trophy instance.
Parameters:
Name | Type | Description |
---|---|---|
gun |
PlayerGun | The player gun. |
enemyFleet |
EnemyFleet | The enemy fleet and ships. |
Properties:
Name | Type | Description |
---|---|---|
gun |
PlayerGun | The player gun |
enemyFleet |
EnemyFleet | The enemy fleet and ships |
isActive |
boolean | Is it active or been won |
domElement |
Object | The HTML DOM element |
- Source:
Methods
check() → {boolean}
One shot one kill BUGGED !!!!!
- Source:
- To Do:
-
- This is bugged code, fix it
Returns:
True if trophy requirements have been met
- Type
- boolean
giveToPlayer()
Give this trophy to the player, just sets the opacity but could do more.
- Source:
update()
Update loop checks if this trophy has been won
- Source: