MCPcopy Create free account
hub / github.com/Panzerschrek/Chasm-Reverse / BuildStateMessage

Method BuildStateMessage

PanzerChasm/server/monster.cpp:645–656  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

643}
644
645void Monster::BuildStateMessage( Messages::MonsterState& out_message ) const
646{
647 PositionToMessagePosition( pos_, out_message.xyz );
648 out_message.angle= AngleToMessageAngle( angle_ );
649 out_message.monster_type= monster_id_;
650 out_message.body_parts_mask= GetBodyPartsMask();
651 out_message.animation= CurrentAnimation();
652 out_message.animation_frame= CurrentAnimationFrame();
653 out_message.is_fully_dead= IsFullyDead();
654 out_message.is_invisible= IsInvisible();
655 out_message.color= 0;
656}
657
658bool Monster::IsBoss() const
659{

Callers

nothing calls this directly

Calls 2

AngleToMessageAngleFunction · 0.85

Tested by

no test coverage detected