|
Xonotic QuakeC
The free, fast arena FPS with crisp movement and a wide array of weapons
|
|
Go to the source code of this file.
Classes | |
| class | Resource |
Macros | |
| #define | REGISTER_RESOURCE(id, inst) |
Functions | |
| float | GetResourceField (Resource res_type) |
| Converts resource type (a RES_* constant) to entity field. | |
| Resource | GetResourceType (.float res_field) |
| Converts an entity field to resource type. | |
| REGISTER_RESOURCE (NONE, NEW(Resource)) | |
| Describes the available resource types. | |
| REGISTRY (Resources, BITS(4)) | |
| STATIC_INIT (default_order_resources) | |
| STATIC_INIT (Resources_renumber) | |
Variables | |
| int | ammo_cells |
| const int | ammo_fuel = _STAT(FUEL) |
| int | ammo_nails |
| int | ammo_none |
| int | ammo_rockets |
| int | ammo_shells |
| float | armorvalue |
| IntrusiveList | default_order_resources |
| float | health |
| Legacy fields for the resources. To be removed. | |
| const int | RES_AMOUNT_HARD_LIMIT = 999 |
| Unconditional maximum amount of resources the entity can have. | |
| const int | RES_LIMIT_NONE = -1 |
| #define REGISTER_RESOURCE | ( | id, | |
| inst ) |
Converts resource type (a RES_* constant) to entity field.
| [in] | res_type | Type of the resource. |
Definition at line 11 of file resources.qc.
References Resource::m_field.
Referenced by SetResourceExplicit().
Converts an entity field to resource type.
| [in] | res_field | Entity field to convert. |
Definition at line 4 of file resources.qc.
Describes the available resource types.
Indicates the lack of resource. Use with caution.
| REGISTRY | ( | Resources | , |
| BITS(4) | ) |
| STATIC_INIT | ( | default_order_resources | ) |
Definition at line 43 of file resources.qh.
References default_order_resources, FOREACH, IL_NEW, and IL_PUSH().
| STATIC_INIT | ( | Resources_renumber | ) |
| int ammo_cells |
Definition at line 18 of file resources.qh.
Referenced by REGISTER_RESOURCE().
Definition at line 20 of file resources.qh.
Referenced by REGISTER_RESOURCE().
| int ammo_nails |
Definition at line 16 of file resources.qh.
Referenced by REGISTER_RESOURCE().
| int ammo_none |
Definition at line 14 of file resources.qh.
| int ammo_rockets |
Definition at line 17 of file resources.qh.
Referenced by REGISTER_RESOURCE().
| int ammo_shells |
Definition at line 15 of file resources.qh.
Referenced by REGISTER_RESOURCE(), and SPAWNFUNC_Q3().
| float armorvalue |
Definition at line 10 of file resources.qh.
Referenced by classfield(), and REGISTER_RESOURCE().
| IntrusiveList default_order_resources |
Definition at line 42 of file resources.qh.
Referenced by HUD_Ammo(), and STATIC_INIT().
| float health |
Legacy fields for the resources. To be removed.
Definition at line 9 of file resources.qh.
Referenced by DebugText3d::ATTRIB(), buff_Medic_CalculateSurviveDamage(), bumblebee_gunner_frame(), bumblebee_pilot_frame(), classfield(), DamageText::DamageText_update(), havocbot_chooseenemy(), Hud_Dynamic_Frame(), HUD_HealthArmor(), MUTATOR_HOOKFUNCTION(), NET_HANDLE(), racer_frame(), raptor_takeoff(), REGISTER_RESOURCE(), spiderbot_frame(), trigger_heal_init(), trigger_heal_touch(), Vehicles_drawHUD(), W_Devastator_Attack(), W_Electro_Attack_Orb(), W_Fireball_Attack1(), W_Hagar_Attack(), W_Hagar_Attack2(), W_Hagar_Attack2_Load_Release(), W_Hook_Attack2(), W_MineLayer_Attack(), W_Mortar_Attack(), W_Mortar_Attack2(), W_OverkillRocketPropelledChainsaw_Attack(), and write_damagetext().
| const int RES_AMOUNT_HARD_LIMIT = 999 |
Unconditional maximum amount of resources the entity can have.
Definition at line 59 of file resources.qh.
Referenced by GetResourceLimit().
| const int RES_LIMIT_NONE = -1 |
Definition at line 60 of file resources.qh.
Referenced by bumblebee_pilot_frame(), destructible_heal(), GetResourceLimit(), GiveResourceWithLimit(), M_Mage_Defend_Heal(), Monster_Heal(), ons_ControlPoint_Icon_Heal(), ons_GeneratorHeal(), SetResource(), turret_heal(), vehicles_heal(), and W_Arc_Beam_Think().