MCPcopy Create free account
hub / github.com/crossuo/crossuo / Draw

Method Draw

src/GameObjects/GameCharacter.cpp:357–380  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

355}
356
357void CGameCharacter::Draw(int x, int y)
358{
359 ScopedPerfMarker(__FUNCTION__);
360
361 if (TimeToRandomFidget < g_Ticks)
362 {
363 SetRandomFidgetAnimation();
364 }
365
366 g_RenderedObjectsCountInGameWindow++;
367
368 uint32_t lastSBsel = g_StatusbarUnderMouse;
369
370 if (!IsPlayer() && g_Player->Warmode && g_SelectedObject.Object == this)
371 {
372 g_StatusbarUnderMouse = Serial;
373 }
374
375 g_AnimationManager.DrawCharacter(this, x, y); //Draw character
376
377 g_StatusbarUnderMouse = lastSBsel;
378
379 DrawEffects(x, y);
380}
381
382void CGameCharacter::Select(int x, int y)
383{

Callers

nothing calls this directly

Calls 2

ScopedPerfMarkerClass · 0.85
DrawCharacterMethod · 0.80

Tested by

no test coverage detected