OpenGothic
Open source reimplementation of Gothic I and II
Loading...
Searching...
No Matches
PlayerControl Class Referencefinal

#include <playercontrol.h>

Public Member Functions

 PlayerControl (DialogMenu &dlg, InventoryMenu &inv)
 
 ~PlayerControl ()
 
void onKeyPressed (KeyCodec::Action a, Tempest::Event::KeyType key, KeyCodec::Mapping mapping=KeyCodec::Mapping::Primary)
 
void onKeyReleased (KeyCodec::Action a, KeyCodec::Mapping mapping=KeyCodec::Mapping::Primary)
 
bool isPressed (KeyCodec::Action a) const
 
void onRotateMouse (float dAngle)
 
void onRotateMouseDy (float dAngle)
 
void changeZoom (int delta)
 
void tickFocus ()
 
void clearFocus ()
 
bool interact (Interactive &it)
 
bool interact (Npc &other)
 
bool interact (Item &item)
 
void clearInput ()
 
void setTarget (Npc *other)
 
void actionFocus (Npc &other)
 
void emptyFocus ()
 
Focus focus () const
 
bool hasActionFocus () const
 
bool tickMove (uint64_t dt)
 
bool tickCameraMove (uint64_t dt)
 

Detailed Description

Definition at line 18 of file playercontrol.h.

Constructor & Destructor Documentation

◆ PlayerControl()

PlayerControl::PlayerControl ( DialogMenu dlg,
InventoryMenu inv 
)

Definition at line 13 of file playercontrol.cpp.

◆ ~PlayerControl()

PlayerControl::~PlayerControl ( )

Definition at line 19 of file playercontrol.cpp.

Member Function Documentation

◆ actionFocus()

void PlayerControl::actionFocus ( Npc other)

Definition at line 287 of file playercontrol.cpp.

◆ changeZoom()

void PlayerControl::changeZoom ( int  delta)

◆ clearFocus()

void PlayerControl::clearFocus ( )

Definition at line 283 of file playercontrol.cpp.

◆ clearInput()

void PlayerControl::clearInput ( )

Definition at line 426 of file playercontrol.cpp.

◆ emptyFocus()

void PlayerControl::emptyFocus ( )

Definition at line 291 of file playercontrol.cpp.

◆ focus()

Focus PlayerControl::focus ( ) const

Definition at line 295 of file playercontrol.cpp.

◆ hasActionFocus()

bool PlayerControl::hasActionFocus ( ) const

Definition at line 299 of file playercontrol.cpp.

◆ interact() [1/3]

bool PlayerControl::interact ( Interactive it)

Definition at line 305 of file playercontrol.cpp.

◆ interact() [2/3]

bool PlayerControl::interact ( Item item)

Definition at line 345 of file playercontrol.cpp.

◆ interact() [3/3]

bool PlayerControl::interact ( Npc other)

Definition at line 323 of file playercontrol.cpp.

◆ isPressed()

bool PlayerControl::isPressed ( KeyCodec::Action  a) const

Definition at line 246 of file playercontrol.cpp.

◆ onKeyPressed()

void PlayerControl::onKeyPressed ( KeyCodec::Action  a,
Tempest::Event::KeyType  key,
KeyCodec::Mapping  mapping = KeyCodec::Mapping::Primary 
)

Definition at line 48 of file playercontrol.cpp.

◆ onKeyReleased()

void PlayerControl::onKeyReleased ( KeyCodec::Action  a,
KeyCodec::Mapping  mapping = KeyCodec::Mapping::Primary 
)

Definition at line 202 of file playercontrol.cpp.

◆ onRotateMouse()

void PlayerControl::onRotateMouse ( float  dAngle)

Definition at line 250 of file playercontrol.cpp.

◆ onRotateMouseDy()

void PlayerControl::onRotateMouseDy ( float  dAngle)

Definition at line 255 of file playercontrol.cpp.

◆ setTarget()

void PlayerControl::setTarget ( Npc other)

Definition at line 31 of file playercontrol.cpp.

◆ tickCameraMove()

bool PlayerControl::tickCameraMove ( uint64_t  dt)

Definition at line 506 of file playercontrol.cpp.

◆ tickFocus()

void PlayerControl::tickFocus ( )

Definition at line 260 of file playercontrol.cpp.

◆ tickMove()

bool PlayerControl::tickMove ( uint64_t  dt)

Definition at line 540 of file playercontrol.cpp.


The documentation for this class was generated from the following files: