Advertisement
Guest User

Untitled

a guest
Jul 24th, 2012
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 1.54 KB | None | 0 0
  1. #pragma once
  2. #include "Animation.h"
  3. #include "SDLib.h"
  4. const int VIRUS = 1;
  5. const int SMALL_WORM = 2;
  6. const int LARGE_WORM = 3;
  7. const int TANK = 4;
  8. const int RED_CELL = 5;
  9. const int BLUE_CELL = 6;
  10. const int CRAWLER = 7;
  11. const int SQUID = 8;
  12. const int BOMB = 9;
  13. const int BLASTER = 10;
  14. const int FLY = 11;
  15.  
  16. class Enemies
  17. {
  18.     public:
  19.  
  20.         struct Vector2
  21.         {
  22.             float x;
  23.             float y;
  24.         };
  25.  
  26.         float speed, previousSpeed, initialHealth, currentHealth, damage, resistance, angle;
  27.         int burntAlpha;
  28.         Animation deathAnim;
  29.         Animation processorReachedAnim;
  30.         Animation walkingAnim, poisonAnim;
  31.  
  32.         Vector2 position;
  33.         bool alive, freeze, flying, poisoned, lightningTarget, killedByLightning, playDeathAnim, reachedProcessor, decrementEnemy;
  34.         int width, height, sourceX, sourceY, waveToAppear;
  35.  
  36.         int maxFreezeTime;
  37.         timer freezeTimer;
  38.         float freezeStrength, currentFreezeTime;
  39.  
  40.         int poisonDmgInterval, pDmgCounter, numberOfPoisonAttacks;
  41.         timer pIntervalTimer;
  42.         float poisonStrength, currentPoisonTime;
  43.  
  44.         Enemies();
  45.         Enemies(SDLib& sdlLib, int dir, int posX, int posY, int prefDirection, int EnemyType, int assignedWave);
  46.         void Update(Map& cMap, SDLib& sdlLib);
  47.         void DrawGreenHealthBar(SDLib& sdlLib);
  48.         void DrawRedHealthBar(SDLib& sdlLib);
  49.         void Draw(SDLib& sdlLib);
  50.         void UpdateCards(SDLib& sdlLib);
  51.  
  52.         static const int LEFT = 0;
  53.         static const int RIGHT = 1;
  54.         static const int UP = 2;
  55.         static const int DOWN = 3;
  56.         int type, direction, preferredDirection, oldPreferredDirection;
  57.  
  58.     private:
  59.         float hasGoneUp32;
  60. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement