Go to the source code of this file.
Detailed Description
Map effects handling.
Definition in file effects.c.
Function Documentation
| void effect_debug |
( |
const char * |
type | ) |
|
Used for debugging effects code using /d_effect command.
- Parameters:
-
| type | What debugging command to run. |
Definition at line 775 of file effects.c.
Deinitialize a single effect.
- Parameters:
-
| effect | Effect that will be freed. |
Definition at line 417 of file effects.c.
| uint8 effect_has_overlay |
( |
| ) |
|
Check whether there is an overlay on the active effect (if any).
- Returns:
- 1 if there is an overlay, 0 otherwise.
Definition at line 830 of file effects.c.
| void effect_scale |
( |
_Sprite * |
sprite | ) |
|
Add an effect overlay to a sprite.
- Parameters:
-
| sprite | The sprite to add overlay to. |
Definition at line 843 of file effects.c.
Allocate a new sprite object and add it to the link of currently shown sprites.
A random sprite definition object will be chosen.
- Parameters:
-
| effect | Effect this is being done for. |
- Returns:
- The created sprite.
Definition at line 481 of file effects.c.
Deinitialize a single sprite definition.
- Parameters:
-
| sprite_def | Sprite definition that will be freed. |
Definition at line 430 of file effects.c.
Deinitialize a single shown sprite.
- Parameters:
-
| sprite | Sprite that will be freed. |
Definition at line 439 of file effects.c.
Remove a single shown sprite from the linked list and free it.
- Parameters:
-
| sprite | Sprite to remove and free. |
Definition at line 447 of file effects.c.
Deinitialize shown sprites of a single effect.
- Parameters:
-
| effect | The effect to have shown sprites deinitialized. |
Definition at line 401 of file effects.c.
| void effect_sprites_play |
( |
| ) |
|
Try to play effect sprites.
Definition at line 531 of file effects.c.
| int effect_start |
( |
const char * |
name | ) |
|
Start an effect identified by its name.
- Parameters:
-
| name | Name of the effect to start. 'none' is a reserved effect name and will stop any currently playing effect. |
- Returns:
- 1 if the effect was started, 0 otherwise.
Definition at line 703 of file effects.c.
Stop currently playing effect.
Definition at line 816 of file effects.c.
Initialize effects from file.
Definition at line 41 of file effects.c.
Makes sure all sprite definitions have correct sprite IDs and their images are properly loaded.
Definition at line 384 of file effects.c.
Variable Documentation
Current effect.
Definition at line 35 of file effects.c.
Linked list of possible effects.
Definition at line 33 of file effects.c.
RGBA as lowercase overlay color names.
Definition at line 37 of file effects.c.