15 lines
499 B
C++
15 lines
499 B
C++
#pragma once
|
|
|
|
#include "Event.h"
|
|
|
|
// The player asked to step the game speed one notch (REQ-UI-HOTKEYS): +1 faster,
|
|
// -1 slower. A relative step rather than a target speed, because the ladder of
|
|
// available speeds belongs to the receiver — contrast SpeedChangeRequestedEvent,
|
|
// which names an absolute multiplier and is what the speed buttons send.
|
|
class SpeedStepRequestedEvent : public Event
|
|
{
|
|
public:
|
|
explicit SpeedStepRequestedEvent(int delta) : delta(delta) {}
|
|
const int delta;
|
|
};
|