mirror of https://github.com/OpenTTD/OpenTTD
(svn r26108) -Codechange: some coding style (whitespace)
parent
6996b441d9
commit
defda16eb6
|
@ -56,7 +56,7 @@ public:
|
|||
};
|
||||
|
||||
/** Factory for the 32bpp blitter with animation. */
|
||||
class FBlitter_32bppAnim: public BlitterFactory<FBlitter_32bppAnim> {
|
||||
class FBlitter_32bppAnim : public BlitterFactory<FBlitter_32bppAnim> {
|
||||
public:
|
||||
/* virtual */ const char *GetName() { return "32bpp-anim"; }
|
||||
/* virtual */ const char *GetDescription() { return "32bpp Animation Blitter (palette animation)"; }
|
||||
|
|
|
@ -32,7 +32,7 @@ public:
|
|||
};
|
||||
|
||||
/** Factory for the optimised 32 bpp blitter (without palette animation). */
|
||||
class FBlitter_32bppOptimized: public BlitterFactory<FBlitter_32bppOptimized> {
|
||||
class FBlitter_32bppOptimized : public BlitterFactory<FBlitter_32bppOptimized> {
|
||||
public:
|
||||
/* virtual */ const char *GetName() { return "32bpp-optimized"; }
|
||||
/* virtual */ const char *GetDescription() { return "32bpp Optimized Blitter (no palette animation)"; }
|
||||
|
|
|
@ -34,7 +34,7 @@ public:
|
|||
};
|
||||
|
||||
/** Factory for the simple 32 bpp blitter. */
|
||||
class FBlitter_32bppSimple: public BlitterFactory<FBlitter_32bppSimple> {
|
||||
class FBlitter_32bppSimple : public BlitterFactory<FBlitter_32bppSimple> {
|
||||
public:
|
||||
/* virtual */ const char *GetName() { return "32bpp-simple"; }
|
||||
/* virtual */ const char *GetDescription() { return "32bpp Simple Blitter (no palette animation)"; }
|
||||
|
|
|
@ -31,7 +31,7 @@ public:
|
|||
};
|
||||
|
||||
/** Factory for the 8bpp blitter optimised for speed. */
|
||||
class FBlitter_8bppOptimized: public BlitterFactory<FBlitter_8bppOptimized> {
|
||||
class FBlitter_8bppOptimized : public BlitterFactory<FBlitter_8bppOptimized> {
|
||||
public:
|
||||
/* virtual */ const char *GetName() { return "8bpp-optimized"; }
|
||||
/* virtual */ const char *GetDescription() { return "8bpp Optimized Blitter (compression + all-ZoomLevel cache)"; }
|
||||
|
|
|
@ -25,7 +25,7 @@ public:
|
|||
};
|
||||
|
||||
/** Factory for the most trivial 8bpp blitter. */
|
||||
class FBlitter_8bppSimple: public BlitterFactory<FBlitter_8bppSimple> {
|
||||
class FBlitter_8bppSimple : public BlitterFactory<FBlitter_8bppSimple> {
|
||||
public:
|
||||
/* virtual */ const char *GetName() { return "8bpp-simple"; }
|
||||
/* virtual */ const char *GetDescription() { return "8bpp Simple Blitter (relative slow, but never wrong)"; }
|
||||
|
|
|
@ -163,7 +163,7 @@ public:
|
|||
* A template factory, so ->GetName() works correctly. This because else some compiler will complain.
|
||||
*/
|
||||
template <class T>
|
||||
class BlitterFactory: public BlitterFactoryBase {
|
||||
class BlitterFactory : public BlitterFactoryBase {
|
||||
public:
|
||||
BlitterFactory() { this->RegisterBlitter(((T *)this)->GetName()); }
|
||||
|
||||
|
|
|
@ -38,7 +38,7 @@ public:
|
|||
};
|
||||
|
||||
/** Factory for the blitter that does nothing. */
|
||||
class FBlitter_Null: public BlitterFactory<FBlitter_Null> {
|
||||
class FBlitter_Null : public BlitterFactory<FBlitter_Null> {
|
||||
public:
|
||||
/* virtual */ const char *GetName() { return "null"; }
|
||||
/* virtual */ const char *GetDescription() { return "Null Blitter (does nothing)"; }
|
||||
|
|
|
@ -88,7 +88,7 @@ public:
|
|||
};
|
||||
|
||||
/** Action of reserving cargo from a station to be loaded onto a vehicle. */
|
||||
class CargoReservation: public CargoLoad {
|
||||
class CargoReservation : public CargoLoad {
|
||||
public:
|
||||
CargoReservation(StationCargoList *source, VehicleCargoList *destination, uint max_move, TileIndex load_place) :
|
||||
CargoLoad(source, destination, max_move, load_place) {}
|
||||
|
@ -96,7 +96,7 @@ public:
|
|||
};
|
||||
|
||||
/** Action of returning previously reserved cargo from the vehicle to the station. */
|
||||
class CargoReturn: public CargoMovement<VehicleCargoList, StationCargoList> {
|
||||
class CargoReturn : public CargoMovement<VehicleCargoList, StationCargoList> {
|
||||
StationID next;
|
||||
public:
|
||||
CargoReturn(VehicleCargoList *source, StationCargoList *destination, uint max_move, StationID next) :
|
||||
|
|
|
@ -59,9 +59,9 @@ DECLARE_POSTFIX_INCREMENT(Driver::Type)
|
|||
/** Base for all driver factories. */
|
||||
class DriverFactoryBase {
|
||||
private:
|
||||
Driver::Type type; ///< The type of driver.
|
||||
Driver::Type type; ///< The type of driver.
|
||||
int priority; ///< The priority of this factory.
|
||||
const char *name; ///< The name of the drivers of this factory.
|
||||
const char *name; ///< The name of the drivers of this factory.
|
||||
const char *description; ///< The description of this driver.
|
||||
|
||||
typedef std::map<const char *, DriverFactoryBase *, StringCompare> Drivers; ///< Type for a map of drivers.
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
#include "music_driver.hpp"
|
||||
|
||||
/** Allegro's music player. */
|
||||
class MusicDriver_Allegro: public MusicDriver {
|
||||
class MusicDriver_Allegro : public MusicDriver {
|
||||
public:
|
||||
/* virtual */ const char *Start(const char * const *param);
|
||||
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
#include "music_driver.hpp"
|
||||
|
||||
/** The midi player for BeOS. */
|
||||
class MusicDriver_BeMidi: public MusicDriver {
|
||||
class MusicDriver_BeMidi : public MusicDriver {
|
||||
public:
|
||||
/* virtual */ const char *Start(const char * const *param);
|
||||
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
|
||||
#include "music_driver.hpp"
|
||||
|
||||
class MusicDriver_Cocoa: public MusicDriver {
|
||||
class MusicDriver_Cocoa : public MusicDriver {
|
||||
public:
|
||||
/* virtual */ const char *Start(const char * const *param);
|
||||
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
#include "music_driver.hpp"
|
||||
|
||||
/** Music player making use of DirectX. */
|
||||
class MusicDriver_DMusic: public MusicDriver {
|
||||
class MusicDriver_DMusic : public MusicDriver {
|
||||
public:
|
||||
virtual ~MusicDriver_DMusic();
|
||||
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
|
||||
#include "music_driver.hpp"
|
||||
|
||||
class MusicDriver_ExtMidi: public MusicDriver {
|
||||
class MusicDriver_ExtMidi : public MusicDriver {
|
||||
private:
|
||||
char *command;
|
||||
char song[MAX_PATH];
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
#include "music_driver.hpp"
|
||||
|
||||
/** Music driver making use of libtimidity. */
|
||||
class MusicDriver_LibTimidity: public MusicDriver {
|
||||
class MusicDriver_LibTimidity : public MusicDriver {
|
||||
public:
|
||||
/* virtual */ const char *Start(const char * const *param);
|
||||
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
#include "../driver.h"
|
||||
|
||||
/** Driver for all music playback. */
|
||||
class MusicDriver: public Driver {
|
||||
class MusicDriver : public Driver {
|
||||
public:
|
||||
/**
|
||||
* Play a particular song.
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
#include "music_driver.hpp"
|
||||
|
||||
/** The music player that does nothing. */
|
||||
class MusicDriver_Null: public MusicDriver {
|
||||
class MusicDriver_Null : public MusicDriver {
|
||||
public:
|
||||
/* virtual */ const char *Start(const char * const *param) { return NULL; }
|
||||
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
#include "music_driver.hpp"
|
||||
|
||||
/** OS/2's music player. */
|
||||
class MusicDriver_OS2: public MusicDriver {
|
||||
class MusicDriver_OS2 : public MusicDriver {
|
||||
public:
|
||||
/* virtual */ const char *Start(const char * const *param);
|
||||
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
|
||||
#include "music_driver.hpp"
|
||||
|
||||
class MusicDriver_QtMidi: public MusicDriver {
|
||||
class MusicDriver_QtMidi : public MusicDriver {
|
||||
public:
|
||||
/* virtual */ const char *Start(const char * const *param);
|
||||
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
#include "music_driver.hpp"
|
||||
|
||||
/** The Windows music player. */
|
||||
class MusicDriver_Win32: public MusicDriver {
|
||||
class MusicDriver_Win32 : public MusicDriver {
|
||||
public:
|
||||
/* virtual */ const char *Start(const char * const *param);
|
||||
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
#include "sound_driver.hpp"
|
||||
|
||||
/** Implementation of the allegro sound driver. */
|
||||
class SoundDriver_Allegro: public SoundDriver {
|
||||
class SoundDriver_Allegro : public SoundDriver {
|
||||
public:
|
||||
/* virtual */ const char *Start(const char * const *param);
|
||||
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
|
||||
#include "sound_driver.hpp"
|
||||
|
||||
class SoundDriver_Cocoa: public SoundDriver {
|
||||
class SoundDriver_Cocoa : public SoundDriver {
|
||||
public:
|
||||
/* virtual */ const char *Start(const char * const *param);
|
||||
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
#include "sound_driver.hpp"
|
||||
|
||||
/** Implementation of the null sound driver. */
|
||||
class SoundDriver_Null: public SoundDriver {
|
||||
class SoundDriver_Null : public SoundDriver {
|
||||
public:
|
||||
/* virtual */ const char *Start(const char * const *param) { return NULL; }
|
||||
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
#include "sound_driver.hpp"
|
||||
|
||||
/** Implementation of the SDL sound driver. */
|
||||
class SoundDriver_SDL: public SoundDriver {
|
||||
class SoundDriver_SDL : public SoundDriver {
|
||||
public:
|
||||
/* virtual */ const char *Start(const char * const *param);
|
||||
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
#include "../driver.h"
|
||||
|
||||
/** Base for all sound drivers. */
|
||||
class SoundDriver: public Driver {
|
||||
class SoundDriver : public Driver {
|
||||
public:
|
||||
/** Called once every tick */
|
||||
virtual void MainLoop() {}
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
#include "sound_driver.hpp"
|
||||
|
||||
/** Implementation of the sound driver for Windows. */
|
||||
class SoundDriver_Win32: public SoundDriver {
|
||||
class SoundDriver_Win32 : public SoundDriver {
|
||||
public:
|
||||
/* virtual */ const char *Start(const char * const *param);
|
||||
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
#include "video_driver.hpp"
|
||||
|
||||
/** The allegro video driver. */
|
||||
class VideoDriver_Allegro: public VideoDriver {
|
||||
class VideoDriver_Allegro : public VideoDriver {
|
||||
public:
|
||||
/* virtual */ const char *Start(const char * const *param);
|
||||
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
|
||||
#include "../video_driver.hpp"
|
||||
|
||||
class VideoDriver_Cocoa: public VideoDriver {
|
||||
class VideoDriver_Cocoa : public VideoDriver {
|
||||
public:
|
||||
/* virtual */ const char *Start(const char * const *param);
|
||||
|
||||
|
|
|
@ -76,7 +76,7 @@ struct OTTD_QuartzGammaTable {
|
|||
}
|
||||
@end
|
||||
|
||||
class FullscreenSubdriver: public CocoaSubdriver {
|
||||
class FullscreenSubdriver : public CocoaSubdriver {
|
||||
CGDirectDisplayID display_id; ///< 0 == main display (only support single display)
|
||||
CFDictionaryRef cur_mode; ///< current mode of the display
|
||||
CFDictionaryRef save_mode; ///< original mode of the display
|
||||
|
|
|
@ -57,7 +57,7 @@ class WindowQuartzSubdriver;
|
|||
- (void)drawRect:(NSRect)invalidRect;
|
||||
@end
|
||||
|
||||
class WindowQuartzSubdriver: public CocoaSubdriver {
|
||||
class WindowQuartzSubdriver : public CocoaSubdriver {
|
||||
private:
|
||||
/**
|
||||
* This function copies 8bpp pixels from the screen buffer in 32bpp windowed mode.
|
||||
|
|
|
@ -45,7 +45,7 @@
|
|||
class WindowQuickdrawSubdriver;
|
||||
|
||||
|
||||
class WindowQuickdrawSubdriver: public CocoaSubdriver {
|
||||
class WindowQuickdrawSubdriver : public CocoaSubdriver {
|
||||
private:
|
||||
/**
|
||||
* This function copies 32bpp pixels from the screen buffer in 16bpp windowed mode.
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
#include "video_driver.hpp"
|
||||
|
||||
/** The dedicated server video driver. */
|
||||
class VideoDriver_Dedicated: public VideoDriver {
|
||||
class VideoDriver_Dedicated : public VideoDriver {
|
||||
public:
|
||||
/* virtual */ const char *Start(const char * const *param);
|
||||
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
#include "video_driver.hpp"
|
||||
|
||||
/** The null video driver. */
|
||||
class VideoDriver_Null: public VideoDriver {
|
||||
class VideoDriver_Null : public VideoDriver {
|
||||
private:
|
||||
uint ticks; ///< Amount of ticks to run.
|
||||
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
#include "video_driver.hpp"
|
||||
|
||||
/** The SDL video driver. */
|
||||
class VideoDriver_SDL: public VideoDriver {
|
||||
class VideoDriver_SDL : public VideoDriver {
|
||||
public:
|
||||
/* virtual */ const char *Start(const char * const *param);
|
||||
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
#include "../core/geometry_type.hpp"
|
||||
|
||||
/** The base of all video drivers. */
|
||||
class VideoDriver: public Driver {
|
||||
class VideoDriver : public Driver {
|
||||
public:
|
||||
/**
|
||||
* Mark a particular area dirty.
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
#include "video_driver.hpp"
|
||||
|
||||
/** The video driver for windows. */
|
||||
class VideoDriver_Win32: public VideoDriver {
|
||||
class VideoDriver_Win32 : public VideoDriver {
|
||||
public:
|
||||
/* virtual */ const char *Start(const char * const *param);
|
||||
|
||||
|
|
Loading…
Reference in New Issue