Pickup class. A multi-purpose pickup that assists a Player or Predator. A pickup will add as much health as it can, then provide shields based on remaining value.
More...
#include <Pickup.hpp>
Pickup class. A multi-purpose pickup that assists a Player or Predator. A pickup will add as much health as it can, then provide shields based on remaining value.
Pickup::Pickup |
( |
sf::Vector2f const & |
position, |
|
|
int |
value |
|
) |
| |
Ship * Pickup::getOwner |
( |
| ) |
const |
bool Pickup::isActive |
( |
| ) |
|
bool Pickup::isOwned |
( |
| ) |
const |
void Pickup::setShape |
( |
float |
radius | ) |
|
|
private |
void Pickup::take |
( |
Ship * |
taker | ) |
|
Affects the taker with pickup's logic.
float Pickup::tickToSec |
( |
unsigned int |
ticks | ) |
const |
|
private |
Updates colours, pickup logic, shield timing.
bool Pickup::wasPickedUpLastTick |
( |
| ) |
|
unsigned int Pickup::shieldTime_ |
|
private |
Shield time that counts up to total when active.
unsigned int Pickup::shieldTimeTotal_ |
|
private |
Total shielding time, value_ * 2.
unsigned int Pickup::takeTick_ |
|
private |
The tick number that we were picked up on.
unsigned int Pickup::ticks_ |
|
private |
Ticks passed since spawn.
unsigned int Pickup::value_ |
|
private |
The documentation for this class was generated from the following files: