FLOOR.H
Upload User: abcdshs
Upload Date: 2007-01-07
Package Size: 1858k
Code Size: 1k
Category:

Game Program

Development Platform:

Visual C++

  1. // (C) Copyright 1996 by Anthony J. Carin.  All Rights Reserved.
  2. #ifndef FLOOR_H
  3. #define FLOOR_H
  4. #include "bmpsurf.h"
  5. class floortype
  6. {
  7. public:
  8.             floortype();
  9.             floortype(CString& c);
  10.            ~floortype();
  11. void        settilesize(float s) { tilesize = s; }
  12. void        setcolor(COLORREF c)   { m_surface->setcolor(c); }
  13. void        draw(coordinate& coord);
  14. void        settexture(CString &t);
  15. void        cleartexture();
  16. private:
  17. surfs      *m_surface;
  18. coordinate  m_a;
  19. coordinate  m_b;
  20. coordinate  m_c;
  21. coordinate  m_d;
  22. float       tilesize;
  23. void        getentirearea(coordinate& coord);
  24. };
  25. #endif