/[projectaxis]/projectaxis/IsoEngine/IsoTilePlotter.h
ViewVC logotype

Diff of /projectaxis/IsoEngine/IsoTilePlotter.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.2 by vovansim, Sat Jun 7 03:55:54 2003 UTC revision 1.3 by vovansim, Sat Sep 13 21:40:20 2003 UTC
# Line 1  Line 1 
1  /** \file IsoTilePlotter.h  /** \file IsoTilePlotter.h
2   * Declares the IsoTilePlotter class.   * Declares the IsoTilePlotter class.
3   *   *
  * Revision History:  
  *     v1.1 (June 6) - Optimized the class for square maps.  
  *                     Removed the different function pointers.  
  *                     Removed the map type accessor and modifier.  
  *                     Removed the plotter function pointer definition.  
  *  
4   * @author <A href="mailto:vovansim@hotmail.com">Vovansim (aka Scorpion)</A>   * @author <A href="mailto:vovansim@hotmail.com">Vovansim (aka Scorpion)</A>
5   * @version 1.1   * @version 1.0
6   * @date June 6, 2003   * @date May 17, 2003
7   */   */
8    
9  #ifndef ISO_TILE_PLOTTER_H  #ifndef ISO_TILE_PLOTTER_H
# Line 17  Line 11 
11    
12  #include "IsoDefinitions.h"  #include "IsoDefinitions.h"
13    
14    /** typedef for tile plotter function pointer type */
15    typedef POINT (*ISOTILEPLOTTERFN)(POINT coords, int tileWidth, int tileHeight);
16    
17  /**  /**
18   * Class IsoTilePlotter: allows for easy tile plotting.   * Class IsoTilePlotter: allows for easy tile plotting.
19   *   *
  * Revision History:  
  *     v1.1 (June 6) - Optimized the class for square maps.  
  *                     Removed the map type accessor and modifier.  
  *                     Removed the map type and plotter function member variables.  
  *  
20   * @author <A href="mailto:vovansim@hotmail.com">Vovansim (aka Scorpion)</A>   * @author <A href="mailto:vovansim@hotmail.com">Vovansim (aka Scorpion)</A>
21   * @version 1.1   * @version 1.0
22   * @date June 6, 2003   * @date May 17, 2003
23   */   */
24  class IsoTilePlotter {  class IsoTilePlotter {
25  public:  public:
# Line 48  public: Line 40  public:
40    
41          ////////////////////////// Accessors / Modifiers //////////////////////////          ////////////////////////// Accessors / Modifiers //////////////////////////
42    
43            /** Map type accessor */
44            ISOMAPTYPE getMapType();
45            /** Map type modifier */
46            void setMapType(ISOMAPTYPE newMapType);
47    
48          /** Returns map width */          /** Returns map width */
49          int getTileWidth();          int getTileWidth();
50          /** Returns map height */          /** Returns map height */
# Line 61  public: Line 58  public:
58          //////////////////////// End Accessors / Modifiers ////////////////////////          //////////////////////// End Accessors / Modifiers ////////////////////////
59    
60  private:  private:
61            /** The map type to plot */
62            ISOMAPTYPE isoMapType;
63    
64          /** Width of a tile */          /** Width of a tile */
65          int tileWidth;          int tileWidth;
66          /** Height of a tile */          /** Height of a tile */
67          int tileHeight;          int tileHeight;
68    
69            /** The function called to calculate the position of plotted tiles */
70            ISOTILEPLOTTERFN plotterFunction;
71  };  };
72    
73  #endif//ISO_TILE_PLOTTER_H  #endif//ISO_TILE_PLOTTER_H

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26