bloodyhands.c 497 B

123456789101112131415161718192021222324
  1. class BloodyHands
  2. {
  3. string m_Materials[2];
  4. const int MATERIAL_TYPE_NORMAL = 0;
  5. const int MATERIAL_TYPE_BLOODY = 1;
  6. void BloodyHands( string normal_material, string bloody_material )
  7. {
  8. m_Materials[MATERIAL_TYPE_NORMAL] = normal_material;
  9. m_Materials[MATERIAL_TYPE_BLOODY] = bloody_material;
  10. }
  11. string GetMaterial( int material_type )
  12. {
  13. return m_Materials[material_type];
  14. }
  15. void SetMaterial( int material_type, string material )
  16. {
  17. m_Materials[material_type] = material;
  18. }
  19. }