$db
$db : resource
A Unit.
Represents an object from the table 'unit'.
$building : \Building
$unit : \K_Unit
$source : \K_Source
$rune : array<mixed,\Rune>
$teams : array<mixed,\Team>
__construct(resource $db, integer $id, boolean $complete = true)
Constructor.
Searches the database and retrieves the information about the monster, populating it and it's items.
| resource | $db | Connection to the database. |
| integer | $id | Monster identifier. |
| boolean | $complete | If false, query only monster and k_monster. |