about summary refs log tree commit diff stats
path: root/data/maps/the_perceptive/rooms
diff options
context:
space:
mode:
authorStar Rauchenberger <fefferburbia@gmail.com>2025-08-21 08:58:21 -0400
committerStar Rauchenberger <fefferburbia@gmail.com>2025-08-21 08:58:21 -0400
commitaddcf1712c66e7b058c87ac4342bd08685d6c6aa (patch)
tree9c0582db12583f3a5e754006c6ffab17726c516c /data/maps/the_perceptive/rooms
parenta5ccb21fcd037f5675a7c7209884be92d383a159 (diff)
downloadlingo2-archipelago-addcf1712c66e7b058c87ac4342bd08685d6c6aa.tar.gz
lingo2-archipelago-addcf1712c66e7b058c87ac4342bd08685d6c6aa.tar.bz2
lingo2-archipelago-addcf1712c66e7b058c87ac4342bd08685d6c6aa.zip
Fixed a couple of missing connections
Diffstat (limited to 'data/maps/the_perceptive/rooms')
0 files changed, 0 insertions, 0 deletions
tor */ .highlight .ne { color: #bb0066; font-weight: bold } /* Name.Exception */ .highlight .nf { color: #0066bb; font-weight: bold } /* Name.Function */ .highlight .nl { color: #336699; font-style: italic } /* Name.Label */ .highlight .nn { color: #bb0066; font-weight: bold } /* Name.Namespace */ .highlight .py { color: #336699; font-weight: bold } /* Name.Property */ .highlight .nt { color: #bb0066; font-weight: bold } /* Name.Tag */ .highlight .nv { color: #336699 } /* Name.Variable */ .highlight .ow { color: #008800 } /* Operator.Word */ .highlight .w { color: #bbbbbb } /* Text.Whitespace */ .highlight .mb { color: #0000DD; font-weight: bold } /* Literal.Number.Bin */ .highlight .mf { color: #0000DD; font-weight: bold } /* Literal.Number.Float */ .highlight .mh { color: #0000DD; font-weight: bold } /* Literal.Number.Hex */ .highlight .mi { color: #0000DD; font-weight: bold } /* Literal.Number.Integer */ .highlight .mo { color: #0000DD; font-weight: bold } /* Literal.Number.Oct */ .highlight .sa { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Affix */ .highlight .sb { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Backtick */ .highlight .sc { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Char */ .highlight .dl { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Delimiter */ .highlight .sd { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Doc */ .highlight .s2 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Double */ .highlight .se { color: #0044dd; background-color: #fff0f0 } /* Literal.String.Escape */ .highlight .sh { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Heredoc */ .highlight .si { color: #3333bb; background-color: #fff0f0 } /* Literal.String.Interpol */ .highlight .sx { color: #22bb22; background-color: #f0fff0 } /* Literal.String.Other */ .highlight .sr { color: #008800; background-color: #fff0ff } /* Literal.String.Regex */ .highlight .s1 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Single */ .highlight .ss { color: #aa6600; background-color: #fff0f0 } /* Literal.String.Symbol */ .highlight .bp { color: #003388 } /* Name.Builtin.Pseudo */ .highlight .fm { color: #0066bb; font-weight: bold } /* Name.Function.Magic */ .highlight .vc { color: #336699 } /* Name.Variable.Class */ .highlight .vg { color: #dd7700 } /* Name.Variable.Global */ .highlight .vi { color: #3333bb } /* Name.Variable.Instance */ .highlight .vm { color: #336699 } /* Name.Variable.Magic */ .highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */
#ifndef OBJECT_H
#define OBJECT_H

#include <wx/wxprec.h>

#ifndef WX_PRECOMP
#include <wx/wx.h>
#endif

#include <string>
#include <map>

class MapObjectLoadException: public std::exception
{
  public:
    MapObjectLoadException(std::string mapname) : mapname(mapname) {}
    
    virtual const char* what() const throw()
    {
      return ("An error occured loading map object " + mapname).c_str();
    }
    
  private:
    std::string mapname;
};

class MapObject {
  public:
    MapObject(const char* filename);
    
    static const std::map<std::string, std::shared_ptr<MapObject>> getAllObjects();
    
    std::string getType() const;
    wxBitmap getSprite() const;
    std::string getAction() const;
    int getWidth() const;
    int getHeight() const;
    
  private:
    std::string type;
    wxBitmap sprite;
    std::string action;
    int width;
    int height;
};

#endif