home *** CD-ROM | disk | FTP | other *** search
/ Programming a Multiplayer FPS in DirectX / Programming a Multiplayer FPS in DirectX (Companion CD).iso / Source / Chapter 12 / Game / GameMaterial.h < prev    next >
Encoding:
C/C++ Source or Header  |  2004-10-01  |  862 b   |  26 lines

  1. //-----------------------------------------------------------------------------
  2. // The derived game material allows new properties to be added to the
  3. // materials, such as sound effects for when the material is stepped on.
  4. //
  5. // Programming a Multiplayer First Person Shooter in DirectX
  6. // Copyright (c) 2004 Vaughan Young
  7. //-----------------------------------------------------------------------------
  8. #ifndef GAME_MATERIAL_H
  9. #define GAME_MATERIAL_H
  10.  
  11. //-----------------------------------------------------------------------------
  12. // Game Material Class
  13. //-----------------------------------------------------------------------------
  14. class GameMaterial : public Material
  15. {
  16. public:
  17.     GameMaterial( char *name, char *path = "./" );
  18.     virtual ~GameMaterial();
  19.  
  20.     Sound *GetStepSound();
  21.  
  22. private:
  23.     LinkedList< Sound > *m_stepSounds;
  24. };
  25.  
  26. #endif