component.warheadsystem - ICE 0.1 API documentation

ICE 0.1 API documentation

# component.warheadsystem

Applies warheads of entities that collided with Collidables.

class WarheadSystem: component.system.System;

  Applies warheads of entities that collided with Collidables.

  Any collidable that has a HealthComponent checks all its colliders. If the collider has a Warhead, the warhead's effect is applied to the collidable (e.g. damage affects HealthComponent).
  Possibly, HealthComponent might not be required to allow warheads affecting entities without health.

  this(EntitySystem entitySystem);

    Construct a WeaponSystem working on entities from specified EntitySystem.

  void update();

    Apply warhead's damage.

Copyright © Ferdinand Majerech 2011. | Page generated by AutoDDoc and Ddoc.