Pie Noon
An open source project by FPL.
 All Classes Pages
fpl::pie_noon::Controller Class Referenceabstract
Inheritance diagram for fpl::pie_noon::Controller:
fpl::pie_noon::AiController fpl::pie_noon::CardboardController fpl::pie_noon::GamepadController fpl::pie_noon::MultiplayerController fpl::pie_noon::PlayerController fpl::pie_noon::TouchscreenController

Public Types

enum  ControllerType {
  kTypeUndefined, kTypePlayer, kTypeAI, kTypeGamepad,
  kTypeTouchScreen, kTypeCardboard, kTypeMultiplayer
}
 

Public Member Functions

 Controller (ControllerType controller_type=kTypeUndefined)
 
virtual void AdvanceFrame (WorldTime delta_time)=0
 
ControllerType controller_type () const
 
uint32_t is_down () const
 
uint32_t went_down () const
 
uint32_t went_up () const
 
void SetLogicalInputs (uint32_t bitmap, bool set)
 
CharacterId character_id () const
 
void set_character_id (CharacterId new_id)
 
CharacterId target_id () const
 
void set_target_id (CharacterId new_id)
 
void ClearAllLogicalInputs ()
 

Protected Attributes

uint32_t is_down_
 
uint32_t went_down_
 
uint32_t went_up_
 
CharacterId character_id_
 
CharacterId target_id_
 
ControllerType controller_type_
 

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