Guest User

Untitled

a guest
Nov 23rd, 2017
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.46 KB | None | 0 0
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. class Item {
  5. public:
  6.     int Id, x, y, z;
  7.     float height, radius;
  8.     Item (int,int,int,int);
  9. };
  10.  
  11. Item::Item (int e,int x,int y,int z) {
  12.     switch(Id)
  13.     {
  14.     case(1):    //Ammo
  15.         radius = 2.5f;
  16.         height = 5.0f;
  17.         break;
  18.  
  19.     case(2):    //Health
  20.         radius = 2.5f;
  21.         height = 5.0f;
  22.         break;
  23.  
  24.     case(3):    //Gun
  25.         radius = 4.0f;
  26.         height = 3.0f;
  27.         break;
  28.     }
  29. }
  30.  
  31. int main() {
  32.     //Do the drawing and such. Not added in yet.
  33. }
Add Comment
Please, Sign In to add comment