code_junkie

OOP: Where to stop Abstracting

Nov 11th, 2011
121
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. class Player {} ;/// contains Weapons
  2. class Weapons{} ;/// contains BulletTypes
  3. class BulletType{} ;///contains descriptions of Bullets
  4. class Bullet{} ;///extends PlaceableObject and RenderableObject which can be placed/drawn respectively
  5. class PlaceableObject{} ;///has x,y,z, coords
  6. class RenderableObject{} ;///an object with a draw() command
  7. class MovingObject{}; ///an object with a move() function
Add Comment
Please, Sign In to add comment