taisei/src/plrmodes.h
Andrei "Akari" Alexeyev d0377bd537 Eliminated floating point values from replays for portability
Player power is now internally an integer. There is no good reason to use floating point math there. Stored as an uint16 in replays.
Player coordinates are now floored when a stage starts. This is unnoticable to the player. Stored as a pair of uint16s in replays.
2017-02-08 21:59:43 +02:00

35 lines
742 B
C

/*
* This software is licensed under the terms of the MIT-License
* See COPYING for further information.
* ---
* Copyright (C) 2011, Lukas Weber <laochailan@web.de>
*/
#ifndef PLRMODES_H
#define PLRMODES_H
#include "enemy.h"
#include "projectile.h"
#include "player.h"
/* Youmu */
void youmu_opposite_draw(Enemy *e, int t);
void youmu_opposite_logic(Enemy *e, int t);
int youmu_homing(Projectile *p, int t);
void youmu_shot(Player *plr);
void youmu_bomb(Player *plr);
void youmu_power(Player *plr, short npow);
/* Marisa */
void marisa_shot(Player *plr);
void marisa_bomb(Player *plr);
void marisa_power(Player *plr, short npow);
/* Misc */
int plrmode_repr(char *out, size_t outsize, Character pchar, ShotMode pshot);
#endif