Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Nov 23, 2015, 3:32:48 PM (10 years ago)
Author:
meierman
Message:

Maze Generator works

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/hoverHS15/src/modules/hover/Hover.h

    r10751 r10835  
    5858#include "tools/Timer.h"
    5959
     60
     61
    6062namespace orxonox
    6163{
     64
     65    enum eDirection
     66    {
     67        eDirection_Invalid = 0,
     68        eDirection_Up      = 1,
     69        eDirection_Right   = 2,
     70        eDirection_Down    = 4,
     71        eDirection_Left    = 8
     72    };
    6273
    6374    class _HoverExport Hover : public Gametype
     
    8091            WeakPtr<HoverOrigin> origin_;
    8192
     93        private:
     94            int CellIdx();
     95            int RandomInt();
     96            int RandomInt4();
     97
     98
     99            bool IsDirValid( eDirection Dir );
     100            eDirection GetDirection();
     101            void GenerateMaze();
     102            void RenderMaze();
     103            void MazeOut();
     104            void LevelOut();
     105
     106
    82107    };
    83108}
Note: See TracChangeset for help on using the changeset viewer.