00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018 #ifndef ENEMY_H
00019 #define ENEMY_H
00020
00021
00022 #include <string>
00023 #include <list>
00024 #include <cstdio>
00025
00026
00027 #include "NPC.hpp"
00028
00029 #include "Player.hpp"
00030
00034 class CEnemy :
00035 public ANPC
00036 {
00037 private:
00038 std::string m_powerupfile;
00039
00040 CPlayer* m_player;
00041
00042 void number_enemys(int* results, std::list<ANPC*>& r_active_my_enemys);
00043
00044 bool calculate_y(float* down_up);
00045
00046 public:
00047 CEnemy(unsigned int starttime, int posx, int posy, Strength theStrength, std::string shipfile, std::string powerupfile, AI_parameter* parameter)
00048 : ANPC(starttime, posx, posy, theStrength, shipfile, parameter), m_powerupfile(powerupfile)
00049 {}
00050
00051 std::string getPowerUp()
00052 {return m_powerupfile;}
00053
00054 bool init(global_data_pointers Data, CPlayer* player, strength* Strength)
00055 { m_player = player; return ANPC::init(Data, Strength);}
00056
00057 ~CEnemy()
00058 {}
00059 };
00060
00061
00062 #endif