| 398 | } |
| 399 | |
| 400 | void Player::BuildStateMessage( Messages::MonsterState& out_message ) const |
| 401 | { |
| 402 | PositionToMessagePosition( pos_, out_message.xyz ); |
| 403 | out_message.angle= AngleToMessageAngle( angle_ ); |
| 404 | out_message.monster_type= 0u; |
| 405 | out_message.body_parts_mask= GetBodyPartsMask(); |
| 406 | out_message.animation= CurrentAnimation(); |
| 407 | out_message.animation_frame= CurrentAnimationFrame(); |
| 408 | out_message.is_fully_dead= IsFullyDead(); |
| 409 | out_message.is_invisible= inviible_in_this_moment_; |
| 410 | out_message.color= GetColor(); |
| 411 | } |
| 412 | |
| 413 | void Player::SetRandomGenerator( const LongRandPtr& random_generator ) |
| 414 | { |
no test coverage detected