Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "Stick.h"
- #include <string>
- Stick::Stick(int X, int Y, std::string sprite):Item(X, Y, sprite) {}
- void Stick::generateCoordinates(int width, int height)
- {
- if(width != 0 && height != 0)
- {
- m_X = rand() % width + 1;
- m_Y = rand() % height + 1;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement