SHARE
TWEET

Stick.cpp

zCool May 20th, 2012 6 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include "Stick.h"
  2. #include <string>
  3.  
  4. Stick::Stick(int X, int Y, std::string sprite):Item(X, Y, sprite) {}
  5.  
  6. void Stick::generateCoordinates(int width, int height)
  7. {
  8.         if(width != 0 && height != 0)
  9.         {
  10.                 m_X = rand() % width + 1;
  11.                 m_Y = rand() % height + 1;
  12.         }
  13. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top