SHARE
TWEET

Untitled

a guest Jun 19th, 2017 43 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #pragma once
  2. #include "Particle.h"
  3. #include <time.h>
  4.  
  5. namespace par
  6. {
  7.     class Explode: public Particle
  8.     {
  9.     public:
  10.         Explode(const sf::Color col = sf::Color(255,255,255), const float sped = 500, const int dur = 500);
  11.         void Step(sf::RenderWindow &RW);
  12.         void Init();
  13.         void SetPosition(const sf::Vector2f &pos);
  14.         sf::Color Color;
  15.         float Speed;
  16.         float Angle;
  17.         int Duration;
  18.         float randangle[2];
  19.     private:
  20.         int start_time;
  21.         sf::Shape line;
  22.     protected:
  23.     };
  24. }
RAW Paste Data
Want to get better at C++?
Learn to code C++ in 2017
Pastebin PRO Summer Special!
Get 40% OFF on Pastebin PRO accounts!
Top