--------------------------------------------------------------------------
| 602 | |
| 603 | //-------------------------------------------------------------------------- |
| 604 | void Lightning::processTick(const Move* move) |
| 605 | { |
| 606 | Parent::processTick(move); |
| 607 | |
| 608 | if (isServerObject() && !isHidden()) { |
| 609 | S32 msBetweenStrikes = (S32)(60.0 / strikesPerMinute * 1000.0); |
| 610 | |
| 611 | mLastThink += TickMs; |
| 612 | if( mLastThink > msBetweenStrikes ) |
| 613 | { |
| 614 | strikeRandomPoint(); |
| 615 | mLastThink -= msBetweenStrikes; |
| 616 | } |
| 617 | } |
| 618 | } |
| 619 | |
| 620 | void Lightning::interpolateTick(F32 dt) |
| 621 | { |
nothing calls this directly
no test coverage detected