Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- class Item {
- public:
- int Id, x, y, z;
- float height, radius;
- Item (int,int,int,int);
- };
- Item::Item (int e,int x,int y,int z) {
- switch(Id)
- {
- case(1): //Ammo
- radius = 2.5f;
- height = 5.0f;
- break;
- case(2): //Health
- radius = 2.5f;
- height = 5.0f;
- break;
- case(3): //Gun
- radius = 4.0f;
- height = 3.0f;
- break;
- }
- }
- int main() {
- //Do the drawing and such. Not added in yet.
- }
Add Comment
Please, Sign In to add comment