stages: suppress deprecation warnings from to-be-modernized files
This commit is contained in:
parent
5e8a1be317
commit
6ddec26882
45 changed files with 85 additions and 10 deletions
|
@ -21,6 +21,10 @@
|
|||
#include "dynarray.h"
|
||||
#include "stageinfo.h"
|
||||
|
||||
#define MODERNIZE_THIS_FILE_AND_REMOVE_ME \
|
||||
PRAGMA(message "This file needs to be modernized") \
|
||||
DIAGNOSTIC(ignored "-Wdeprecated-declarations")
|
||||
|
||||
/* taisei's strange macro language.
|
||||
*
|
||||
* sorry, I guess it is bad style, but I hardcode everything and in that case
|
||||
|
|
|
@ -13,6 +13,8 @@
|
|||
#include "global.h"
|
||||
#include "common_tasks.h"
|
||||
|
||||
MODERNIZE_THIS_FILE_AND_REMOVE_ME
|
||||
|
||||
DIAGNOSTIC(ignored "-Wunused-variable")
|
||||
|
||||
TASK(laserproj_death, { Projectile *p; }) {
|
||||
|
|
|
@ -18,6 +18,8 @@
|
|||
#include "stagetext.h"
|
||||
#include "stageutils.h"
|
||||
|
||||
MODERNIZE_THIS_FILE_AND_REMOVE_ME
|
||||
|
||||
TASK(glider_bullet, {
|
||||
cmplx pos; double dir; double spacing; int interval;
|
||||
}) {
|
||||
|
|
|
@ -17,8 +17,7 @@
|
|||
#include "util/glm.h"
|
||||
#include "portrait.h"
|
||||
|
||||
PRAGMA(message "Remove when this stage is modernized")
|
||||
DIAGNOSTIC(ignored "-Wdeprecated-declarations")
|
||||
MODERNIZE_THIS_FILE_AND_REMOVE_ME
|
||||
|
||||
/*
|
||||
* See the definition of AttackInfo in boss.h for information on how to set up the idmaps.
|
||||
|
|
|
@ -15,8 +15,7 @@
|
|||
#include "enemy.h"
|
||||
#include "common_tasks.h"
|
||||
|
||||
PRAGMA(message "Remove when this stage is modernized")
|
||||
DIAGNOSTIC(ignored "-Wdeprecated-declarations")
|
||||
MODERNIZE_THIS_FILE_AND_REMOVE_ME
|
||||
|
||||
TASK(boss_appear_stub, NO_ARGS) {
|
||||
log_warn("FIXME");
|
||||
|
|
|
@ -12,6 +12,8 @@
|
|||
|
||||
#include "global.h"
|
||||
|
||||
MODERNIZE_THIS_FILE_AND_REMOVE_ME
|
||||
|
||||
static void kurumi_global_rule(Boss *b, int time) {
|
||||
// FIXME: avoid running this every frame!
|
||||
|
||||
|
|
|
@ -13,6 +13,8 @@
|
|||
|
||||
#include "global.h"
|
||||
|
||||
MODERNIZE_THIS_FILE_AND_REMOVE_ME
|
||||
|
||||
void kurumi_sbreaker(Boss *b, int time) {
|
||||
if(time < 0)
|
||||
return;
|
||||
|
|
|
@ -13,6 +13,8 @@
|
|||
|
||||
#include "global.h"
|
||||
|
||||
MODERNIZE_THIS_FILE_AND_REMOVE_ME
|
||||
|
||||
void kurumi_breaker(Boss *b, int time) {
|
||||
int t = time % 400;
|
||||
int i;
|
||||
|
|
|
@ -13,6 +13,8 @@
|
|||
|
||||
#include "global.h"
|
||||
|
||||
MODERNIZE_THIS_FILE_AND_REMOVE_ME
|
||||
|
||||
static int aniwall_bullet(Projectile *p, int t) {
|
||||
if(t < 0) {
|
||||
return ACTION_ACK;
|
||||
|
|
|
@ -12,6 +12,8 @@
|
|||
|
||||
#include "global.h"
|
||||
|
||||
MODERNIZE_THIS_FILE_AND_REMOVE_ME
|
||||
|
||||
static int blowwall_slave(Enemy *e, int t) {
|
||||
float re, im;
|
||||
|
||||
|
|
|
@ -13,6 +13,8 @@
|
|||
|
||||
#include "global.h"
|
||||
|
||||
MODERNIZE_THIS_FILE_AND_REMOVE_ME
|
||||
|
||||
static int kurumi_burstslave(Enemy *e, int t) {
|
||||
TIMER(&t);
|
||||
AT(EVENT_BIRTH)
|
||||
|
|
|
@ -13,6 +13,8 @@
|
|||
|
||||
#include "global.h"
|
||||
|
||||
MODERNIZE_THIS_FILE_AND_REMOVE_ME
|
||||
|
||||
static int kurumi_spikeslave(Enemy *e, int t) {
|
||||
TIMER(&t);
|
||||
AT(EVENT_BIRTH)
|
||||
|
|
|
@ -13,6 +13,7 @@
|
|||
|
||||
#include "global.h"
|
||||
|
||||
MODERNIZE_THIS_FILE_AND_REMOVE_ME
|
||||
|
||||
static Projectile *vapor_particle(cmplx pos, const Color *clr) {
|
||||
return PARTICLE(
|
||||
|
|
|
@ -13,6 +13,7 @@
|
|||
|
||||
#include "global.h"
|
||||
|
||||
MODERNIZE_THIS_FILE_AND_REMOVE_ME
|
||||
|
||||
static void kurumi_extra_shield_pos(Enemy *e, int time) {
|
||||
double dst = 75 + 100 * fmax((60 - time) / 60.0, 0);
|
||||
|
|
|
@ -22,8 +22,7 @@
|
|||
#include "common_tasks.h"
|
||||
#include "../stage6/elly.h"
|
||||
|
||||
PRAGMA(message "Remove when this stage is modernized")
|
||||
DIAGNOSTIC(ignored "-Wdeprecated-declarations")
|
||||
MODERNIZE_THIS_FILE_AND_REMOVE_ME
|
||||
|
||||
TASK(boss_appear_stub, NO_ARGS) {
|
||||
log_warn("FIXME");
|
||||
|
|
|
@ -14,6 +14,8 @@
|
|||
#include "global.h"
|
||||
#include "stageutils.h"
|
||||
|
||||
MODERNIZE_THIS_FILE_AND_REMOVE_ME
|
||||
|
||||
void stage5_update(void) {
|
||||
stage_3d_context.cam.aspect = STAGE3D_DEFAULT_ASPECT; // FIXME
|
||||
stage_3d_context.cam.near = 100;
|
||||
|
|
|
@ -14,6 +14,8 @@
|
|||
|
||||
#include "common_tasks.h"
|
||||
|
||||
MODERNIZE_THIS_FILE_AND_REMOVE_ME
|
||||
|
||||
void iku_lightning_particle(cmplx pos, int t) {
|
||||
if(!(t % 5)) {
|
||||
char *part = frand() > 0.5 ? "lightning0" : "lightning1";
|
||||
|
|
|
@ -10,6 +10,8 @@
|
|||
|
||||
#include "nonspells.h"
|
||||
|
||||
MODERNIZE_THIS_FILE_AND_REMOVE_ME
|
||||
|
||||
void iku_bolts(Boss *b, int time) {
|
||||
int t = time % 400;
|
||||
TIMER(&t);
|
||||
|
|
|
@ -10,6 +10,8 @@
|
|||
|
||||
#include "nonspells.h"
|
||||
|
||||
MODERNIZE_THIS_FILE_AND_REMOVE_ME
|
||||
|
||||
static cmplx bolts2_laser(Laser *l, float t) {
|
||||
if(t == EVENT_BIRTH) {
|
||||
l->shader = r_shader_get_optional("lasers/iku_lightning");
|
||||
|
|
|
@ -10,6 +10,8 @@
|
|||
|
||||
#include "nonspells.h"
|
||||
|
||||
MODERNIZE_THIS_FILE_AND_REMOVE_ME
|
||||
|
||||
void iku_bolts3(Boss *b, int time) {
|
||||
int t = time % 400;
|
||||
TIMER(&t);
|
||||
|
|
|
@ -10,6 +10,8 @@
|
|||
|
||||
#include "spells.h"
|
||||
|
||||
MODERNIZE_THIS_FILE_AND_REMOVE_ME
|
||||
|
||||
static int zigzag_bullet(Projectile *p, int t) {
|
||||
if(t < 0) {
|
||||
return ACTION_ACK;
|
||||
|
|
|
@ -10,6 +10,8 @@
|
|||
|
||||
#include "spells.h"
|
||||
|
||||
MODERNIZE_THIS_FILE_AND_REMOVE_ME
|
||||
|
||||
void iku_atmospheric(Boss *b, int time) {
|
||||
if(time < 0) {
|
||||
GO_TO(b, VIEWPORT_W/2+200.0*I, 0.06);
|
||||
|
|
|
@ -10,6 +10,8 @@
|
|||
|
||||
#include "spells.h"
|
||||
|
||||
MODERNIZE_THIS_FILE_AND_REMOVE_ME
|
||||
|
||||
void iku_induction(Boss *b, int t) {
|
||||
// thwarf safespots
|
||||
cmplx ofs = global.diff > D_Normal ? 10*I : 0;
|
||||
|
|
|
@ -10,6 +10,8 @@
|
|||
|
||||
#include "spells.h"
|
||||
|
||||
MODERNIZE_THIS_FILE_AND_REMOVE_ME
|
||||
|
||||
static cmplx cathode_laser(Laser *l, float t) {
|
||||
if(t == EVENT_BIRTH) {
|
||||
l->shader = r_shader_get_optional("lasers/iku_cathode");
|
||||
|
|
|
@ -10,6 +10,8 @@
|
|||
|
||||
#include "spells.h"
|
||||
|
||||
MODERNIZE_THIS_FILE_AND_REMOVE_ME
|
||||
|
||||
static Enemy* iku_overload_find_next_slave(cmplx from, double playerbias) {
|
||||
Enemy *nearest = NULL, *e;
|
||||
double dist, mindist = INFINITY;
|
||||
|
|
|
@ -10,6 +10,8 @@
|
|||
|
||||
#include "spells.h"
|
||||
|
||||
MODERNIZE_THIS_FILE_AND_REMOVE_ME
|
||||
|
||||
static int iku_explosion(Enemy *e, int t) {
|
||||
TIMER(&t)
|
||||
AT(EVENT_KILLED) {
|
||||
|
|
|
@ -13,6 +13,8 @@
|
|||
#include "nonspells/nonspells.h"
|
||||
#include "spells/spells.h"
|
||||
|
||||
MODERNIZE_THIS_FILE_AND_REMOVE_ME
|
||||
|
||||
TASK(boss_appear_stub, NO_ARGS) {
|
||||
log_warn("FIXME");
|
||||
}
|
||||
|
|
|
@ -12,6 +12,8 @@
|
|||
|
||||
#include "global.h"
|
||||
|
||||
MODERNIZE_THIS_FILE_AND_REMOVE_ME
|
||||
|
||||
static Stage6DrawData *stage6_draw_data;
|
||||
|
||||
Stage6DrawData *stage6_get_draw_data(void) {
|
||||
|
|
|
@ -12,6 +12,8 @@
|
|||
#include "elly.h"
|
||||
#include "draw.h"
|
||||
|
||||
MODERNIZE_THIS_FILE_AND_REMOVE_ME
|
||||
|
||||
void scythe_common(Enemy *e, int t) {
|
||||
e->args[1] += cimag(e->args[1]);
|
||||
}
|
||||
|
|
|
@ -10,6 +10,8 @@
|
|||
|
||||
#include "nonspells.h"
|
||||
|
||||
MODERNIZE_THIS_FILE_AND_REMOVE_ME
|
||||
|
||||
void elly_frequency(Boss *b, int t) {
|
||||
TIMER(&t);
|
||||
Enemy *scythe;
|
||||
|
|
|
@ -10,6 +10,8 @@
|
|||
|
||||
#include "nonspells.h"
|
||||
|
||||
MODERNIZE_THIS_FILE_AND_REMOVE_ME
|
||||
|
||||
void elly_frequency2(Boss *b, int t) {
|
||||
TIMER(&t);
|
||||
|
||||
|
|
|
@ -11,6 +11,8 @@
|
|||
#include "nonspells.h"
|
||||
#include "stagetext.h"
|
||||
|
||||
MODERNIZE_THIS_FILE_AND_REMOVE_ME
|
||||
|
||||
void elly_paradigm_shift(Boss *b, int t) {
|
||||
if(global.stage->type == STAGE_SPELL) {
|
||||
GO_TO(b, BOSS_DEFAULT_GO_POS, 0.1)
|
||||
|
|
|
@ -10,6 +10,8 @@
|
|||
|
||||
#include "nonspells.h"
|
||||
|
||||
MODERNIZE_THIS_FILE_AND_REMOVE_ME
|
||||
|
||||
static int baryon_nattack(Enemy *e, int t) {
|
||||
if(t < 0)
|
||||
return 1;
|
||||
|
|
|
@ -10,6 +10,8 @@
|
|||
|
||||
#include "nonspells.h"
|
||||
|
||||
MODERNIZE_THIS_FILE_AND_REMOVE_ME
|
||||
|
||||
static int baryon_explode(Enemy *e, int t) {
|
||||
TIMER(&t);
|
||||
AT(EVENT_DEATH) {
|
||||
|
|
|
@ -12,6 +12,8 @@
|
|||
|
||||
#include "common_tasks.h"
|
||||
|
||||
MODERNIZE_THIS_FILE_AND_REMOVE_ME
|
||||
|
||||
#define BROGLIE_PERIOD (420 - 30 * global.diff)
|
||||
|
||||
static int broglie_particle(Projectile *p, int t) {
|
||||
|
|
|
@ -12,6 +12,8 @@
|
|||
|
||||
#include "common_tasks.h"
|
||||
|
||||
MODERNIZE_THIS_FILE_AND_REMOVE_ME
|
||||
|
||||
static int eigenstate_proj(Projectile *p, int t) {
|
||||
if(t < 0) {
|
||||
return ACTION_ACK;
|
||||
|
|
|
@ -12,6 +12,8 @@
|
|||
|
||||
#include "common_tasks.h"
|
||||
|
||||
MODERNIZE_THIS_FILE_AND_REMOVE_ME
|
||||
|
||||
static int baryon_curvature(Enemy *e, int t) {
|
||||
int num = creal(e->args[2])+0.5;
|
||||
int odd = num&1;
|
||||
|
|
|
@ -12,6 +12,8 @@
|
|||
|
||||
#include "common_tasks.h"
|
||||
|
||||
MODERNIZE_THIS_FILE_AND_REMOVE_ME
|
||||
|
||||
static int scythe_kepler(Enemy *e, int t) {
|
||||
if(t < 0) {
|
||||
scythe_common(e, t);
|
||||
|
|
|
@ -12,6 +12,8 @@
|
|||
|
||||
#include "common_tasks.h"
|
||||
|
||||
MODERNIZE_THIS_FILE_AND_REMOVE_ME
|
||||
|
||||
static void lhc_laser_logic(Laser *l, int t) {
|
||||
Enemy *e;
|
||||
|
||||
|
|
|
@ -12,6 +12,8 @@
|
|||
|
||||
#include "common_tasks.h"
|
||||
|
||||
MODERNIZE_THIS_FILE_AND_REMOVE_ME
|
||||
|
||||
static cmplx maxwell_laser(Laser *l, float t) {
|
||||
if(t == EVENT_BIRTH) {
|
||||
l->unclearable = true;
|
||||
|
|
|
@ -12,6 +12,8 @@
|
|||
|
||||
#include "common_tasks.h"
|
||||
|
||||
MODERNIZE_THIS_FILE_AND_REMOVE_ME
|
||||
|
||||
static int scythe_newton(Enemy *e, int t) {
|
||||
if(t < 0) {
|
||||
scythe_common(e, t);
|
||||
|
|
|
@ -12,6 +12,8 @@
|
|||
|
||||
#include "common_tasks.h"
|
||||
|
||||
MODERNIZE_THIS_FILE_AND_REMOVE_ME
|
||||
|
||||
/* !!! You are entering Akari danmaku code !!! */
|
||||
#define SAFE_RADIUS_DELAY 300
|
||||
#define SAFE_RADIUS_BASE 100
|
||||
|
|
|
@ -12,6 +12,8 @@
|
|||
#include "stagetext.h"
|
||||
#include "common_tasks.h"
|
||||
|
||||
MODERNIZE_THIS_FILE_AND_REMOVE_ME
|
||||
|
||||
#define LASER_EXTENT (4+1.5*global.diff-D_Normal)
|
||||
#define LASER_LENGTH 60
|
||||
|
||||
|
|
|
@ -19,8 +19,7 @@
|
|||
#include "portrait.h"
|
||||
#include "common_tasks.h"
|
||||
|
||||
PRAGMA(message "Remove when this stage is modernized")
|
||||
DIAGNOSTIC(ignored "-Wdeprecated-declarations")
|
||||
MODERNIZE_THIS_FILE_AND_REMOVE_ME
|
||||
|
||||
/*
|
||||
* See the definition of AttackInfo in boss.h for information on how to set up the idmaps.
|
||||
|
|
|
@ -18,8 +18,7 @@
|
|||
|
||||
#include "common_tasks.h"
|
||||
|
||||
PRAGMA(message "Remove when this stage is modernized")
|
||||
DIAGNOSTIC(ignored "-Wdeprecated-declarations")
|
||||
MODERNIZE_THIS_FILE_AND_REMOVE_ME
|
||||
|
||||
TASK(boss_appear_stub, NO_ARGS) {
|
||||
log_warn("FIXME");
|
||||
|
|
Loading…
Reference in a new issue