class Core::Portable::StaticGameEnvironment

Overview

#include <staticgameenv.h>

class StaticGameEnvironment:
    public Core::IGameEnvironment,
    public Core::Portable::StaticViewPainter
{
public:
    // construction

    StaticGameEnvironment(BitmapPixelFormat screenFormat);

    // methods

    PROPERTY_POINTER(StaticCustomView, gameView, GameView);
    void startGame(bool state);
    void runGame();
    void setJoypadButtonPressed(JoypadButton button, bool state);
    void resetJoypadState();
    virtual void setProperty(const Property& value);
    virtual void getProperty(Property& value);
    virtual void release();
    virtual int getScreenWidth() const;
    virtual int getScreenHeight() const;
    virtual int getScreenFormat() const;
    virtual bool isJoypadButtonPressed(JoypadButton button) const;
    virtual int getPointerValue(PointerValue which) const;
    void drawView(const StaticView& view, const DrawEvent& e);
};

Inherited Members

public:
    // typedefs

    typedef int32 TypeID;

    // fields

    static const InterfaceID kIID = 0;
    static const InterfaceID kIID = FOUR_CHAR_ID('G', 'm', 'E', 'v');
    const DrawEvent& e = 0;

    // methods

    virtual void setProperty(const Property& value) = 0;
    virtual void getProperty(Property& value) = 0;
    virtual void release() = 0;
    virtual int getScreenWidth() const = 0;
    virtual int getScreenHeight() const = 0;
    virtual int getScreenFormat() const = 0;
    virtual bool isJoypadButtonPressed(JoypadButton button) const = 0;
    virtual int getPointerValue(PointerValue which) const = 0;
    virtual void* castTo(TypeID typeId) = 0;
    virtual void* castTo(TypeID typeId);
    DECLARE_CORE_CLASS_('ISVP', IStaticViewPainter) const;

Detailed Documentation

Methods

virtual void setProperty(const Property& value)

Set property value.

virtual void getProperty(Property& value)

Get property value.

Type and size need to be initialized by caller.

virtual void release()

Release this instance.