29 #ifndef _HUDWeapon_H__ 30 #define _HUDWeapon_H__ 55 virtual void tick(
float dt)
override;
56 virtual void changedOwner()
override;
57 virtual void changedOverlayGroup()
override;
58 virtual void changedVisibility()
override;
59 virtual void changedName()
override;
60 virtual void positionChanged()
override;
61 virtual void sizeChanged()
override;
63 void setWeapon(
Weapon* weapon);
66 { weaponModeHUDActualSize_ = vector;
70 {
return weaponModeHUDActualSize_; }
73 this->positionOffset_ = positionOffset;
74 this->updatePosition();
79 this->updatePosition();
83 void createHUDChilds();
84 void positionHUDChilds();
85 void destroyHUDChilds();
86 void updateWeaponModeList();
88 void updatePosition();
Declaration of the Tickable interface.
void setWeaponIndex(int index)
Definition: HUDWeapon.h:76
WeakPtr wraps a pointer to an object, which becomes nullptr if the object is deleted.
Definition: CorePrereqs.h:236
Vector2 weaponModeHUDActualSize_
Definition: HUDWeapon.h:97
std::vector< WeakPtr< HUDWeaponMode > > hudWeaponModes_
Definition: HUDWeapon.h:93
xmlelement
Definition: Super.h:519
int weaponIndex_
Definition: HUDWeapon.h:99
Declaration of the OverlayGroup class.
WeakPtr< Pawn > owner_
Definition: HUDWeapon.h:90
#define _OverlaysExport
Definition: OverlaysPrereqs.h:60
Ogre::PanelOverlayElement * overlayElement_
Definition: HUDWeapon.h:95
Die Wagnis Klasse hat die folgenden Aufgaben:
Definition: ApplicationPaths.cc:66
Shared library macros, enums, constants and forward declarations for the overlays module ...
Mode
Definition: CorePrereqs.h:102
A Weapon is a StaticEntity that can be attached to a WeaponSlot.
Definition: Weapon.h:46
Base class to display content directly onto the screen.
Definition: OrxonoxOverlay.h:72
Declaration of the OrxonoxOverlay class.
Vector2 positionOffset_
Definition: HUDWeapon.h:98
WeakPtr< Weapon > weapon_
Definition: HUDWeapon.h:91
void setWeaponModeHUDActualSize(Vector2 vector)
Definition: HUDWeapon.h:65
The Tickable interface provides a tick(dt) function, that gets called every frame.
Definition: Tickable.h:52
Vector2 getWeaponModeHUDActualSize() const
Definition: HUDWeapon.h:69
void setPositionOffset(Vector2 positionOffset)
Definition: HUDWeapon.h:71
Definition: HUDWeapon.h:48