taisei/src/player.h

59 lines
832 B
C
Raw Normal View History

/*
* 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 PLAYER_H
#define PLAYER_H
#include <complex.h>
#include "texture.h"
#include "animation.h"
#include "enemy.h"
enum {
False = 0,
True = 1
};
typedef enum {
Youmu,
Marisa
} Character;
typedef enum {
2011-04-29 10:26:37 +02:00
YoumuOpposite,
YoumuHoming
} ShotMode;
typedef struct {
complex pos;
short focus;
short fire;
short moving;
short dir;
float power;
int lifes;
int bombs;
float recovery;
Character cha;
ShotMode shot;
Enemy *slaves;
Animation *ani;
} Player;
2011-04-29 10:26:37 +02:00
void init_player(Player*, Character cha, ShotMode shot);
void player_draw(Player*);
void player_logic(Player*);
void plr_bomb(Player*);
void plr_death(Player*);
#endif