123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180 |
- #ifndef MECHLOPEDIA_H
- #define MECHLOPEDIA_H
- /*************************************************************************************************\
- mechlopedia.h : Interface for the mechlopedia component.
- //---------------------------------------------------------------------------//
- // Copyright (C) Microsoft Corporation. All rights reserved. //
- //===========================================================================//
- \*************************************************************************************************/
- #ifndef LOGISTICSSCREEN_H
- #include "LogisticsScreen.h"
- #endif
- #ifndef SIMPLECAMERA_H
- #include "SimpleCamera.h"
- #endif
- #ifndef ALISTBOX_H
- #include "aListBox.h"
- #endif
- #ifndef COMPONENTLISTBOX_H
- #include "SimpleComponentListBox.h"
- #endif
- #include "..\resource.h"
- class LogisticsChassis;
- class LogisticsVehicle;
- //*************************************************************************************************
- /**************************************************************************************************
- CLASS DESCRIPTION
- mechlopedia:
- **************************************************************************************************/
- class Mechlopedia : public LogisticsScreen
- {
- public:
- Mechlopedia();
- virtual ~Mechlopedia();
- int init();
- virtual int handleMessage( unsigned long, unsigned long );
- virtual void update();
- virtual void render();
- virtual void begin();
- private:
- LogisticsScreen* subScreens[6];
- int currentScreen;
- aListBox listBox;
- class SubScreen : public LogisticsScreen
- {
- public:
- void setListBox( aListBox* pLB ) {groupListBox = pLB; }
- int init( FitIniFile& file );
- virtual void update();
- virtual void select( aTextListItem* pEntry ){}
- virtual void end();
- virtual void setVehicle( bool bVehicle ){ }
- protected:
- aListBox* groupListBox;
- aListBox descriptionListBox;
- SimpleCamera camera;
-
- };
- class MechScreen : public SubScreen
- {
-
- public:
- void init();
- virtual void update();
- virtual void render();
- virtual void begin();
- virtual void select( aTextListItem* pEntry );
- void setMech( LogisticsVariant* pChassis, bool bShowJump );
- // set this before you call begin
- virtual void setVehicle( bool bVehicle ){ bIsVehicle = bVehicle; }
- void setVehicle( LogisticsVehicle* pVehicle );
- private:
- ComponentListBox compListBox;
- aListBox statsListBox;
- bool bIsVehicle;
- };
- class WeaponScreen : public SubScreen
- {
- public:
- void init();
- virtual void update();
- virtual void render();
- virtual void begin();
- virtual void select( aTextListItem* pEntry );
- void setWeapon ( LogisticsComponent* pWeapon );
- private:
- aListBox statsListBox;
- };
- class PersonalityScreen : public SubScreen
- {
- public:
- void init();
- virtual void update();
- virtual void render();
- virtual void begin();
- virtual void select( aTextListItem* pEntry );
- void setIsHistory( bool bTrue ) { bIsHistory = bTrue; }
- private:
- bool bIsHistory;
-
- };
- class BuildingScreen : public SubScreen
- {
- public:
- void init();
- virtual void update();
- virtual void render();
- virtual void begin();
- virtual void select( aTextListItem* pEntry );
- private:
- ComponentListBox compListBox;
- };
-
-
- // HELPER FUNCTIONS
- };
- /////////////////////////////////////////////////////
- class MechlopediaListItem: public aAnimTextListItem
- {
- public:
-
- MechlopediaListItem();
- virtual void render();
- static void init( );
- private:
- aObject bmp;
- aAnimGroup bmpAnim;
- static MechlopediaListItem* s_templateItem;
- };
- //*************************************************************************************************
- #endif // end of file ( mechlopedia.h )
|