Skip to content

game::entity

Paweł Waligóra edited this page May 22, 2024 · 1 revision

Description

Base class for anything that has hp and can "die".

Obvious usages are:

but you can (and should) use this also for things such as:

  • exploding barrels
  • breakable environment elements
  • traps

, because game::projectiles, and hit_scan based game::weapons usually look for this type of scripts.

#include "entity.h"

Usage

Just derive from game::entity.

#include "entity.h"
namespace game {
    class my_entity : public game::entity {
        // ...
    };
}

Home

Git Workflow

Issues

Coding Rules

Skrypty-Tutorial

Useful resources

Game Structure

Code Structure

Clone this wiki locally