| 44 | } |
| 45 | |
| 46 | void BeamItem::init(ToolUserEntity* owner, ToolHand hand) { |
| 47 | ToolUserItem::init(owner, hand); |
| 48 | |
| 49 | m_beamCurve = CSplineF(); |
| 50 | |
| 51 | if (initialized()) { |
| 52 | m_color = owner->favoriteColor(); |
| 53 | m_range = owner->beamGunRadius(); |
| 54 | return; |
| 55 | } |
| 56 | |
| 57 | throw ItemException("BeamItem::init: Beam Gun not init'd properly, or user not recognized as Tool User."); |
| 58 | } |
| 59 | |
| 60 | void BeamItem::update(float dt, FireMode, bool, HashSet<MoveControlType> const&) { |
| 61 | if (m_particleGenerateCooldown >= 0) |
nothing calls this directly
no test coverage detected