Skip to content

Commit

Permalink
added usefull function
Browse files Browse the repository at this point in the history
  • Loading branch information
jstar88 committed Mar 17, 2015
1 parent 7f088e7 commit bda56ae
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions models/ShipType.php
Original file line number Diff line number Diff line change
Expand Up @@ -370,6 +370,17 @@ public function getCurrentLife()
{
return $this->currentLife;
}


/**
* ShipType::getCurrentPower()
* Get the current attack power value of a all ships of this type.
* @return int
*/
public function getCurrentPower()
{
return $this->fullPower;
}


/**
Expand Down

0 comments on commit bda56ae

Please sign in to comment.