Skyscraper 2.0
Skyscraper::PeopleManager Class Reference

#include <peoplemanager.h>

Inheritance diagram for Skyscraper::PeopleManager:
Collaboration diagram for Skyscraper::PeopleManager:

Public Member Functions

 PeopleManager (DebugPanel *parent, wxWindowID id=wxID_ANY, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize)
 
virtual ~PeopleManager ()
 
void Loop ()
 

Public Attributes

wxButton * bDelete
 
wxButton * bGo
 
wxButton * bLobby
 
wxButton * bNew
 
wxButton * bOK
 
wxButton * bSetFloor
 
wxButton * bSetName
 
wxButton * bStop
 
wxCheckBox * chkRandom
 
wxCheckBox * chkService
 
wxListBox * PersonList
 
wxStaticLine * StaticLine1
 
wxStaticLine * StaticLine2
 
wxStaticLine * StaticLine3
 
wxStaticText * StaticText1
 
wxStaticText * StaticText2
 
wxStaticText * StaticText3
 
wxStaticText * StaticText4
 
wxStaticText * StaticText5
 
wxTextCtrl * tDestination
 
wxTextCtrl * tFloor
 
wxTextCtrl * tName
 
wxTextCtrl * tRouteActive
 
wxTextCtrl * tStatus
 
wxTextCtrl * txtLobby
 

Static Protected Attributes

static const long ID_PersonList = wxNewId()
 
static const long ID_STATICTEXT1 = wxNewId()
 
static const long ID_tName = wxNewId()
 
static const long ID_bSetName = wxNewId()
 
static const long ID_STATICTEXT2 = wxNewId()
 
static const long ID_tFloor = wxNewId()
 
static const long ID_bSetFloor = wxNewId()
 
static const long ID_STATICTEXT3 = wxNewId()
 
static const long ID_tDestination = wxNewId()
 
static const long ID_bGo = wxNewId()
 
static const long ID_STATICTEXT5 = wxNewId()
 
static const long ID_tRouteActive = wxNewId()
 
static const long ID_bStop = wxNewId()
 
static const long ID_STATICTEXT4 = wxNewId()
 
static const long ID_txtLobby = wxNewId()
 
static const long ID_bLobby = wxNewId()
 
static const long ID_STATICLINE1 = wxNewId()
 
static const long ID_STATICLINE2 = wxNewId()
 
static const long ID_STATICLINE3 = wxNewId()
 
static const long ID_tStatus = wxNewId()
 
static const long ID_chkRandom = wxNewId()
 
static const long ID_chkService = wxNewId()
 
static const long ID_bNew = wxNewId()
 
static const long ID_bDelete = wxNewId()
 
static const long ID_bOK = wxNewId()
 

Private Member Functions

void On_bSetName_Click (wxCommandEvent &event)
 
void On_bSetFloor_Click (wxCommandEvent &event)
 
void On_bGo_Click (wxCommandEvent &event)
 
void On_bNew_Click (wxCommandEvent &event)
 
void On_bDelete_Click (wxCommandEvent &event)
 
void On_bOK_Click (wxCommandEvent &event)
 
void On_chkRandom_Click (wxCommandEvent &event)
 
void On_chkService_Click (wxCommandEvent &event)
 
void On_bStop_Click (wxCommandEvent &event)
 
void On_bLobby_Click (wxCommandEvent &event)
 
void BuildList (bool restore_selection=false)
 

Private Attributes

SBS::SBSSimcore
 
DebugPanelpanel
 
int lastcount
 
SBS::Personperson
 
int floor
 
int dest_floor
 
std::string status
 

Detailed Description

Definition at line 39 of file peoplemanager.h.

Constructor & Destructor Documentation

◆ PeopleManager()

Skyscraper::PeopleManager::PeopleManager ( DebugPanel * parent,
wxWindowID id = wxID_ANY,
const wxPoint & pos = wxDefaultPosition,
const wxSize & size = wxDefaultSize )

◆ ~PeopleManager()

Skyscraper::PeopleManager::~PeopleManager ( )
virtual

Definition at line 177 of file peoplemanager.cpp.

Member Function Documentation

◆ BuildList()

void Skyscraper::PeopleManager::BuildList ( bool restore_selection = false)
private

◆ Loop()

◆ On_bDelete_Click()

void Skyscraper::PeopleManager::On_bDelete_Click ( wxCommandEvent & event)
private

Definition at line 275 of file peoplemanager.cpp.

References BuildList(), SBS::SBS::DeleteObject(), person, and Simcore.

Referenced by PeopleManager().

Here is the call graph for this function:

◆ On_bGo_Click()

void Skyscraper::PeopleManager::On_bGo_Click ( wxCommandEvent & event)
private

Definition at line 264 of file peoplemanager.cpp.

References SBS::Person::GotoFloor(), person, and tDestination.

Referenced by PeopleManager().

Here is the call graph for this function:

◆ On_bLobby_Click()

void Skyscraper::PeopleManager::On_bLobby_Click ( wxCommandEvent & event)
private

Definition at line 350 of file peoplemanager.cpp.

References SBS::SBS::Lobby, Simcore, and tDestination.

Referenced by PeopleManager().

◆ On_bNew_Click()

void Skyscraper::PeopleManager::On_bNew_Click ( wxCommandEvent & event)
private

Definition at line 270 of file peoplemanager.cpp.

References SBS::SBS::CreatePerson(), and Simcore.

Referenced by PeopleManager().

Here is the call graph for this function:

◆ On_bOK_Click()

void Skyscraper::PeopleManager::On_bOK_Click ( wxCommandEvent & event)
private

Definition at line 283 of file peoplemanager.cpp.

Referenced by PeopleManager().

◆ On_bSetFloor_Click()

void Skyscraper::PeopleManager::On_bSetFloor_Click ( wxCommandEvent & event)
private

Definition at line 258 of file peoplemanager.cpp.

References person, SBS::Person::SetFloor(), and tFloor.

Referenced by PeopleManager().

Here is the call graph for this function:

◆ On_bSetName_Click()

void Skyscraper::PeopleManager::On_bSetName_Click ( wxCommandEvent & event)
private

Definition at line 248 of file peoplemanager.cpp.

References BuildList(), lastcount, person, SBS::ObjectBase::SetName(), and tName.

Referenced by PeopleManager().

Here is the call graph for this function:

◆ On_bStop_Click()

void Skyscraper::PeopleManager::On_bStop_Click ( wxCommandEvent & event)
private

Definition at line 300 of file peoplemanager.cpp.

References person, and SBS::Person::Stop().

Referenced by PeopleManager().

Here is the call graph for this function:

◆ On_chkRandom_Click()

void Skyscraper::PeopleManager::On_chkRandom_Click ( wxCommandEvent & event)
private

Definition at line 288 of file peoplemanager.cpp.

References chkRandom, SBS::Person::EnableRandomActivity(), and person.

Referenced by PeopleManager().

Here is the call graph for this function:

◆ On_chkService_Click()

void Skyscraper::PeopleManager::On_chkService_Click ( wxCommandEvent & event)
private

Definition at line 294 of file peoplemanager.cpp.

References chkService, person, and SBS::Person::SetServiceAccess().

Referenced by PeopleManager().

Here is the call graph for this function:

Member Data Documentation

◆ bDelete

wxButton* Skyscraper::PeopleManager::bDelete

Definition at line 47 of file peoplemanager.h.

◆ bGo

wxButton* Skyscraper::PeopleManager::bGo

Definition at line 48 of file peoplemanager.h.

◆ bLobby

wxButton* Skyscraper::PeopleManager::bLobby

Definition at line 49 of file peoplemanager.h.

◆ bNew

wxButton* Skyscraper::PeopleManager::bNew

Definition at line 50 of file peoplemanager.h.

◆ bOK

wxButton* Skyscraper::PeopleManager::bOK

Definition at line 51 of file peoplemanager.h.

◆ bSetFloor

wxButton* Skyscraper::PeopleManager::bSetFloor

Definition at line 52 of file peoplemanager.h.

◆ bSetName

wxButton* Skyscraper::PeopleManager::bSetName

Definition at line 53 of file peoplemanager.h.

◆ bStop

wxButton* Skyscraper::PeopleManager::bStop

Definition at line 54 of file peoplemanager.h.

◆ chkRandom

wxCheckBox* Skyscraper::PeopleManager::chkRandom

Definition at line 55 of file peoplemanager.h.

Referenced by BuildList(), Loop(), and On_chkRandom_Click().

◆ chkService

wxCheckBox* Skyscraper::PeopleManager::chkService

Definition at line 56 of file peoplemanager.h.

Referenced by BuildList(), Loop(), and On_chkService_Click().

◆ dest_floor

int Skyscraper::PeopleManager::dest_floor
private

Definition at line 125 of file peoplemanager.h.

Referenced by Loop().

◆ floor

int Skyscraper::PeopleManager::floor
private

Definition at line 124 of file peoplemanager.h.

Referenced by Loop().

◆ ID_bDelete

const long Skyscraper::PeopleManager::ID_bDelete = wxNewId()
staticprotected

Definition at line 101 of file peoplemanager.h.

◆ ID_bGo

const long Skyscraper::PeopleManager::ID_bGo = wxNewId()
staticprotected

Definition at line 87 of file peoplemanager.h.

◆ ID_bLobby

const long Skyscraper::PeopleManager::ID_bLobby = wxNewId()
staticprotected

Definition at line 93 of file peoplemanager.h.

◆ ID_bNew

const long Skyscraper::PeopleManager::ID_bNew = wxNewId()
staticprotected

Definition at line 100 of file peoplemanager.h.

◆ ID_bOK

const long Skyscraper::PeopleManager::ID_bOK = wxNewId()
staticprotected

Definition at line 102 of file peoplemanager.h.

◆ ID_bSetFloor

const long Skyscraper::PeopleManager::ID_bSetFloor = wxNewId()
staticprotected

Definition at line 84 of file peoplemanager.h.

◆ ID_bSetName

const long Skyscraper::PeopleManager::ID_bSetName = wxNewId()
staticprotected

Definition at line 81 of file peoplemanager.h.

◆ ID_bStop

const long Skyscraper::PeopleManager::ID_bStop = wxNewId()
staticprotected

Definition at line 90 of file peoplemanager.h.

◆ ID_chkRandom

const long Skyscraper::PeopleManager::ID_chkRandom = wxNewId()
staticprotected

Definition at line 98 of file peoplemanager.h.

◆ ID_chkService

const long Skyscraper::PeopleManager::ID_chkService = wxNewId()
staticprotected

Definition at line 99 of file peoplemanager.h.

◆ ID_PersonList

const long Skyscraper::PeopleManager::ID_PersonList = wxNewId()
staticprotected

Definition at line 78 of file peoplemanager.h.

◆ ID_STATICLINE1

const long Skyscraper::PeopleManager::ID_STATICLINE1 = wxNewId()
staticprotected

Definition at line 94 of file peoplemanager.h.

◆ ID_STATICLINE2

const long Skyscraper::PeopleManager::ID_STATICLINE2 = wxNewId()
staticprotected

Definition at line 95 of file peoplemanager.h.

◆ ID_STATICLINE3

const long Skyscraper::PeopleManager::ID_STATICLINE3 = wxNewId()
staticprotected

Definition at line 96 of file peoplemanager.h.

◆ ID_STATICTEXT1

const long Skyscraper::PeopleManager::ID_STATICTEXT1 = wxNewId()
staticprotected

Definition at line 79 of file peoplemanager.h.

◆ ID_STATICTEXT2

const long Skyscraper::PeopleManager::ID_STATICTEXT2 = wxNewId()
staticprotected

Definition at line 82 of file peoplemanager.h.

◆ ID_STATICTEXT3

const long Skyscraper::PeopleManager::ID_STATICTEXT3 = wxNewId()
staticprotected

Definition at line 85 of file peoplemanager.h.

◆ ID_STATICTEXT4

const long Skyscraper::PeopleManager::ID_STATICTEXT4 = wxNewId()
staticprotected

Definition at line 91 of file peoplemanager.h.

◆ ID_STATICTEXT5

const long Skyscraper::PeopleManager::ID_STATICTEXT5 = wxNewId()
staticprotected

Definition at line 88 of file peoplemanager.h.

◆ ID_tDestination

const long Skyscraper::PeopleManager::ID_tDestination = wxNewId()
staticprotected

Definition at line 86 of file peoplemanager.h.

◆ ID_tFloor

const long Skyscraper::PeopleManager::ID_tFloor = wxNewId()
staticprotected

Definition at line 83 of file peoplemanager.h.

◆ ID_tName

const long Skyscraper::PeopleManager::ID_tName = wxNewId()
staticprotected

Definition at line 80 of file peoplemanager.h.

◆ ID_tRouteActive

const long Skyscraper::PeopleManager::ID_tRouteActive = wxNewId()
staticprotected

Definition at line 89 of file peoplemanager.h.

◆ ID_tStatus

const long Skyscraper::PeopleManager::ID_tStatus = wxNewId()
staticprotected

Definition at line 97 of file peoplemanager.h.

◆ ID_txtLobby

const long Skyscraper::PeopleManager::ID_txtLobby = wxNewId()
staticprotected

Definition at line 92 of file peoplemanager.h.

◆ lastcount

int Skyscraper::PeopleManager::lastcount
private

Definition at line 122 of file peoplemanager.h.

Referenced by BuildList(), and On_bSetName_Click().

◆ panel

DebugPanel* Skyscraper::PeopleManager::panel
private

Definition at line 121 of file peoplemanager.h.

Referenced by Loop().

◆ person

SBS::Person* Skyscraper::PeopleManager::person
private

◆ PersonList

wxListBox* Skyscraper::PeopleManager::PersonList

Definition at line 57 of file peoplemanager.h.

Referenced by BuildList(), and Loop().

◆ Simcore

SBS::SBS* Skyscraper::PeopleManager::Simcore
private

Definition at line 120 of file peoplemanager.h.

Referenced by BuildList(), Loop(), On_bDelete_Click(), On_bLobby_Click(), and On_bNew_Click().

◆ StaticLine1

wxStaticLine* Skyscraper::PeopleManager::StaticLine1

Definition at line 58 of file peoplemanager.h.

◆ StaticLine2

wxStaticLine* Skyscraper::PeopleManager::StaticLine2

Definition at line 59 of file peoplemanager.h.

◆ StaticLine3

wxStaticLine* Skyscraper::PeopleManager::StaticLine3

Definition at line 60 of file peoplemanager.h.

◆ StaticText1

wxStaticText* Skyscraper::PeopleManager::StaticText1

Definition at line 61 of file peoplemanager.h.

◆ StaticText2

wxStaticText* Skyscraper::PeopleManager::StaticText2

Definition at line 62 of file peoplemanager.h.

◆ StaticText3

wxStaticText* Skyscraper::PeopleManager::StaticText3

Definition at line 63 of file peoplemanager.h.

◆ StaticText4

wxStaticText* Skyscraper::PeopleManager::StaticText4

Definition at line 64 of file peoplemanager.h.

◆ StaticText5

wxStaticText* Skyscraper::PeopleManager::StaticText5

Definition at line 65 of file peoplemanager.h.

◆ status

std::string Skyscraper::PeopleManager::status
private

Definition at line 126 of file peoplemanager.h.

Referenced by Loop().

◆ tDestination

wxTextCtrl* Skyscraper::PeopleManager::tDestination

Definition at line 66 of file peoplemanager.h.

Referenced by BuildList(), Loop(), On_bGo_Click(), and On_bLobby_Click().

◆ tFloor

wxTextCtrl* Skyscraper::PeopleManager::tFloor

Definition at line 67 of file peoplemanager.h.

Referenced by BuildList(), Loop(), and On_bSetFloor_Click().

◆ tName

wxTextCtrl* Skyscraper::PeopleManager::tName

Definition at line 68 of file peoplemanager.h.

Referenced by BuildList(), Loop(), and On_bSetName_Click().

◆ tRouteActive

wxTextCtrl* Skyscraper::PeopleManager::tRouteActive

Definition at line 69 of file peoplemanager.h.

Referenced by BuildList(), and Loop().

◆ tStatus

wxTextCtrl* Skyscraper::PeopleManager::tStatus

Definition at line 70 of file peoplemanager.h.

Referenced by BuildList(), and Loop().

◆ txtLobby

wxTextCtrl* Skyscraper::PeopleManager::txtLobby

Definition at line 71 of file peoplemanager.h.

Referenced by Loop().


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