Lines Matching refs:current_effect

36 EffectDefinition current_effect;  variable
53 current_effect.effect = gtk_combo_box_get_active(GTK_COMBO_BOX(gtk_effect_list)); in change_eye_candy_effect()
54 current_effect.hue = GTK_ADJUSTMENT(gtk_effect_hue_obj)->value; in change_eye_candy_effect()
55 current_effect.saturation = GTK_ADJUSTMENT(gtk_effect_saturation_obj)->value; in change_eye_candy_effect()
56 current_effect.scale = GTK_ADJUSTMENT(gtk_effect_scale_obj)->value; in change_eye_candy_effect()
57 current_effect.density = GTK_ADJUSTMENT(gtk_effect_density_obj)->value; in change_eye_candy_effect()
58 current_effect.base_height = atoi(gtk_entry_get_text(GTK_ENTRY(gtk_effect_base_height))); in change_eye_candy_effect()
59 if (current_effect.reference) in change_eye_candy_effect()
61 ec_recall_effect(current_effect.reference); in change_eye_candy_effect()
62 current_effect.reference = NULL; in change_eye_candy_effect()
64 switch (current_effect.effect) in change_eye_candy_effect()
72current_effect.reference = ec_create_campfire(current_effect.position.x, current_effect.position.y… in change_eye_candy_effect()
80current_effect.reference = ec_create_cloud(current_effect.position.x, current_effect.position.y, c… in change_eye_candy_effect()
88current_effect.reference = ec_create_fireflies(current_effect.position.x, current_effect.position.… in change_eye_candy_effect()
96current_effect.reference = ec_create_fountain(current_effect.position.x, current_effect.position.y… in change_eye_candy_effect()
104current_effect.reference = ec_create_lamp(current_effect.position.x, current_effect.position.y, cu… in change_eye_candy_effect()
112current_effect.reference = ec_create_ongoing_magic_protection(current_effect.position.x, current_e… in change_eye_candy_effect()
120current_effect.reference = ec_create_ongoing_shield(current_effect.position.x, current_effect.posi… in change_eye_candy_effect()
128current_effect.reference = ec_create_ongoing_magic_immunity(current_effect.position.x, current_eff… in change_eye_candy_effect()
136current_effect.reference = ec_create_ongoing_poison(current_effect.position.x, current_effect.posi… in change_eye_candy_effect()
144current_effect.reference = ec_create_smoke(current_effect.position.x, current_effect.position.y, c… in change_eye_candy_effect()
152current_effect.reference = ec_create_teleporter(current_effect.position.x, current_effect.position… in change_eye_candy_effect()
161current_effect.reference = ec_create_wind_leaves(current_effect.position.x, current_effect.positio… in change_eye_candy_effect()
169current_effect.reference = ec_create_wind_petals(current_effect.position.x, current_effect.positio… in change_eye_candy_effect()
185 current_effect.reference = NULL; in change_eye_candy_effect()
194 current_effect.reference = NULL; in change_eye_candy_effect()
203current_effect.reference = ec_create_candle(current_effect.position.x, current_effect.position.y, in change_eye_candy_effect()
210 if (current_effect.reference) in remove_current_eye_candy_effect()
212 ec_recall_effect(current_effect.reference); in remove_current_eye_candy_effect()
213 current_effect.reference = NULL; in remove_current_eye_candy_effect()
222 switch (current_effect.effect) in confirm_eye_candy_effect()
229 current_effect.position = ec::Vec3(-1.0, -1.0, 0.0); in confirm_eye_candy_effect()
251 switch (current_effect.effect) in update_eye_candy_position()
258 if (current_effect.bounds.elements.size() > 1) in update_eye_candy_position()
262 current_effect.position.x = x; in update_eye_candy_position()
263 current_effect.position.y = y; in update_eye_candy_position()
264 if (current_effect.reference) in update_eye_candy_position()
265 ec_set_position(current_effect.reference, x, y, current_effect.position.z); in update_eye_candy_position()
288 …if ((current_effect.bounds.elements.size() == 0) && (current_effect.position == ec::Vec3(-1.0, -1.… in add_eye_candy_point()
289 current_effect.position = ec::Vec3(x, y, z); in add_eye_candy_point()
290 else if (current_effect.bounds.elements.size() < 13) in add_eye_candy_point()
291current_effect.bounds.elements.insert(current_effect.bounds.elements.begin() + last_ec_index, angl… in add_eye_candy_point()
299 current_effect.position = ec::Vec3(x, y, z); in add_eye_candy_point()
302 …const ec::SmoothPolygonElement new_angle = angle_to(current_effect.position.x, current_effect.posi… in add_eye_candy_point()
303 current_effect.bounds.elements.erase(current_effect.bounds.elements.begin() + last_ec_index); in add_eye_candy_point()
305 for (i = 0; i < (int)current_effect.bounds.elements.size(); i++) in add_eye_candy_point()
307 if (new_angle.angle < current_effect.bounds.elements[i].angle) in add_eye_candy_point()
310 current_effect.bounds.elements.insert(current_effect.bounds.elements.begin() + i, new_angle); in add_eye_candy_point()
332 current_effect.bounds.elements.erase(current_effect.bounds.elements.begin() + last_ec_index); in delete_eye_candy_point()
336 current_effect = EffectDefinition(); in delete_eye_candy_point()
348 effects.push_back(current_effect); in eye_candy_add_effect()
349 current_effect.reference = NULL; in eye_candy_add_effect()
350 switch (current_effect.effect) in eye_candy_add_effect()
357 current_effect.effect = 0; in eye_candy_add_effect()
364 current_effect.bounds = ec::SmoothPolygonBoundingRange(); in eye_candy_add_effect()
375 if (current_effect.reference) in eye_candy_done_adding_effect()
377 switch (current_effect.effect) in eye_candy_done_adding_effect()
384 effects.push_back(current_effect); in eye_candy_done_adding_effect()
392 current_effect.reference = NULL; in eye_candy_done_adding_effect()
393 current_effect.bounds = ec::SmoothPolygonBoundingRange(); in eye_candy_done_adding_effect()
394 current_effect.position = ec::Vec3(-1.0, -1.0, 0.0); in eye_candy_done_adding_effect()
401 return current_effect.effect; in eye_candy_get_effect()
406 current_effect.position.z += offset; in eye_candy_adjust_z()
417 draw_bound(current_effect, true); in draw_bounds_on_minimap()
497 if ((current_effect.position.x == -1.0) && (current_effect.position.y == -1.0)) in find_bounds_index()
503 if ((fabs(x - current_effect.position.x) < 9.0) && (fabs(y - current_effect.position.y) < 9.0)) in find_bounds_index()
509 for (int i = 0; i < (int)current_effect.bounds.elements.size(); i++) in find_bounds_index()
511 …std::vector<ec::SmoothPolygonElement>::const_iterator iter = current_effect.bounds.elements.begin(… in find_bounds_index()
512 const float temp_x = current_effect.position.x - iter->radius * sin(iter->angle); in find_bounds_index()
513 const float temp_y = current_effect.position.y + iter->radius * cos(iter->angle); in find_bounds_index()
521 float cur_angle = angle_to(current_effect.position.x, current_effect.position.y, x, y).angle; in find_bounds_index()
522 last_ec_index = current_effect.bounds.elements.size(); in find_bounds_index()
523 for (int i = 0; i < (int)current_effect.bounds.elements.size(); i++) in find_bounds_index()
525 const float angle = current_effect.bounds.elements[i].angle; in find_bounds_index()
574 sprintf((char *)str, "X Pos: %03.2f",current_effect.position.x); in draw_eye_candy_obj_info()
578 sprintf((char *)str, "Y Pos: %03.2f",current_effect.position.y); in draw_eye_candy_obj_info()
582 sprintf((char *)str, "Z Pos: %03.2f",current_effect.position.z); in draw_eye_candy_obj_info()
588 sprintf((char *)str, "Angle : %03.2f",current_effect.angle); in draw_eye_candy_obj_info()
592 sprintf((char *)str, "Density : %03.2f",current_effect.density); in draw_eye_candy_obj_info()
596 sprintf((char *)str, "Scale : %03.2f",current_effect.scale); in draw_eye_candy_obj_info()
602 sprintf((char *)str, "Hue : %03.2f",current_effect.hue); in draw_eye_candy_obj_info()
606 sprintf((char *)str, "Saturation: %03.2f",current_effect.saturation); in draw_eye_candy_obj_info()
610 sprintf((char *)str, "Height : %03.2f",current_effect.base_height); in draw_eye_candy_obj_info()
622 draw_eye_candy_selector(&current_effect, i); in draw_eye_candy_selectors()
685 if (current_effect.reference) in select_eye_candy_effect()
687 ec_recall_effect(current_effect.reference); in select_eye_candy_effect()
688 current_effect.reference = NULL; in select_eye_candy_effect()
690 current_effect = *iter; in select_eye_candy_effect()
697 if (current_effect.reference) in kill_eye_candy_effect()
699 ec_recall_effect(current_effect.reference); in kill_eye_candy_effect()
700 current_effect.reference = NULL; in kill_eye_candy_effect()