Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

util.cpp File Reference

#include <SDL/SDL.h>
#include <dirent.h>
#include <vector>
#include "util.h"
#include "random.h"

Include dependency graph for util.cpp:

Go to the source code of this file.

Functions

Uint32 getpixel (SDL_Surface *surface, int x, int y)
string chooseRandomFile (string path, string fileType)
string getHomeDir ()


Function Documentation

string chooseRandomFile string  path,
string  fileType
 

Definition at line 38 of file util.cpp.

References d, dirent, nextInt, pos, and Opie::Internal::string().

Referenced by SFCave::changeState().

string getHomeDir  ) 
 

Definition at line 65 of file util.cpp.

Uint32 getpixel SDL_Surface *  surface,
int  x,
int  y
 

Definition at line 11 of file util.cpp.

References p.

Referenced by Terrain::checkCollision(), and StarField::draw().


Generated on Sat Nov 5 16:50:38 2005 for OPIE by  doxygen 1.4.2