Atrinik Client 2.5
Data Fields
effect_sprite_def Struct Reference

#include <effects.h>

Data Fields

struct effect_sprite_defnext
int id
char * name
double weight
double weight_mod
int chance
uint32 delay
uint8 wind
double wiggle
double wind_mod
int x
int y
int xpos
int ypos
uint8 reverse
double y_rndm
double x_mod
double y_mod
uint8 x_check_mod
uint8 y_check_mod
uint8 kill_side_left
uint8 kill_side_right
uint16 zoom
uint8 warp_sides
uint32 ttl
char sound_file [MAX_BUF]
uint8 sound_volume

Detailed Description

Sprite definition; holds various settings of a single sprite.

Definition at line 131 of file effects.h.


Field Documentation

Chance to use this sprite: the higher the number in comparison to other sprites in the list, the more likely it is to be used; same as artifacts work. 1 by default.

Definition at line 154 of file effects.h.

How long to delay until another movement, in ticks. Default is 0.

Definition at line 157 of file effects.h.

ID of in-game sprite to use.

Definition at line 137 of file effects.h.

Whether to kill sprites that go too far to the left (off screen), 1 by default.

Definition at line 211 of file effects.h.

Whether to kill sprites that go too far to the right (off screen), 0 by default.

Definition at line 216 of file effects.h.

Name of the in-game sprite to use.

Definition at line 140 of file effects.h.

Next sprite definition in a linked list.

Definition at line 134 of file effects.h.

Whether to go from bottom to top, instead of top to bottom, 0 by default.

Definition at line 185 of file effects.h.

Sound effect to play each time this sprite is created. By default, no sound is played.

Definition at line 233 of file effects.h.

Volume of the sound effect to play. Default is 100.

Definition at line 236 of file effects.h.

Time to live (in ticks).

Definition at line 228 of file effects.h.

Warp sprites going too far to the sides (off screen), 1 by default.

Definition at line 225 of file effects.h.

Weight of the sprite: affects how fast it falls down, and gets blown away by wind, default is 1.0.

Definition at line 145 of file effects.h.

Weight modification, default is 2.0.

Definition at line 148 of file effects.h.

How much to wiggle when falling down, 0.0 to fall straight down. Default 1.0.

Definition at line 165 of file effects.h.

Non-zero value to enable wind simulation. Default is 1.

Definition at line 160 of file effects.h.

How much to affect randomization part of wind blowing simulation (0.0 to disable the randomization). Default is 1.0.

Definition at line 170 of file effects.h.

X position of the sprite, -1 for random (default).

Definition at line 173 of file effects.h.

Whether to affect side-checking of sprites with the sprite's width, 1 by default.

Definition at line 201 of file effects.h.

X calculation modification.

Definition at line 193 of file effects.h.

X position modifier, 0 by default.

Definition at line 179 of file effects.h.

Y position of the sprite, -1 for random (default).

Definition at line 176 of file effects.h.

Whether to affect side-checking of sprites with the sprite's height, 1 by default.

Definition at line 206 of file effects.h.

Y calculation modification.

Definition at line 196 of file effects.h.

Initial Y starting position; will be randomized between 0-value. Default is 60.0.

Definition at line 190 of file effects.h.

Y position modifier, 0 by default.

Definition at line 182 of file effects.h.

How much to zoom this sprite, 0 by default (no zoom), 100 = same as current sprite, 200 = twice as big.

Definition at line 221 of file effects.h.


The documentation for this struct was generated from the following file: