diff --git a/src/game/g_holmes.pas b/src/game/g_holmes.pas
index 210368deda7b60c463d95b1acc1b13fe11395527..37ade0969ba649690bfaecbb95c1821fa85842c3 100644 (file)
--- a/src/game/g_holmes.pas
+++ b/src/game/g_holmes.pas
kbS: Word = 0; // keyboard modifiers state
showMonsInfo: Boolean = false;
showMonsLOS2Plr: Boolean = false;
+ showAllMonsCells: Boolean = false;
// ////////////////////////////////////////////////////////////////////////// //
}
end;
+ function highlightAllMonsterCells (mon: TMonster): Boolean;
+ begin
+ result := false; // don't stop
+ monsGrid.forEachBodyCell(mon.proxyId, hilightCell);
+ end;
+
var
mon: TMonster;
mx, my, mw, mh: Integer;
end;
end;
+ if showAllMonsCells then g_Mons_ForEach(highlightAllMonsterCells);
+
//e_DrawPoint(16, laserX0, laserY0, 255, 255, 255);
glPopMatrix();
function g_Holmes_KeyEvent (var ev: THKeyEvent): Boolean;
+var
+ mon: TMonster;
begin
result := false;
msB := ev.bstate;
showMonsLOS2Plr := not showMonsLOS2Plr;
exit;
end;
+ // M-G: toggle "show all cells occupied by monsters"
+ if (ev.scan = SDL_SCANCODE_G) and ((ev.kstate and THKeyEvent.ModAlt) <> 0) then
+ begin
+ result := true;
+ showAllMonsCells := not showAllMonsCells;
+ exit;
+ end;
+ // M-A: wake up monster
+ if (ev.scan = SDL_SCANCODE_A) and ((ev.kstate and THKeyEvent.ModAlt) <> 0) then
+ begin
+ result := true;
+ if (monMarkedUID <> -1) then
+ begin
+ mon := g_Monsters_ByUID(monMarkedUID);
+ if (mon <> nil) then mon.WakeUp();
+ end;
+ exit;
+ end;
end;
end;
//drawText8Prop(10, 20, 'Hi there, I''m Holmes!', 255, 255, 0);
drawCursor();
+
+ laserSet := false;
end;