From 601e9fbcfdb26b53aff4d44805bb596f0b73208a Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Sun, 22 Sep 2013 18:05:03 +0300 Subject: [PATCH] Add a shortcut for defining normal graphic --- source/part.cpp | 5 +++++ source/part.h | 1 + 2 files changed, 6 insertions(+) diff --git a/source/part.cpp b/source/part.cpp index 7c98545..4726b4c 100644 --- a/source/part.cpp +++ b/source/part.cpp @@ -58,6 +58,11 @@ Part::Loader::~Loader() } } +void Part::Loader::graphic_normal(const string &n) +{ + graphic(NORMAL, n); +} + void Part::Loader::graphic(State s, const string &n) { Graphic *grph = &get_collection().get(n); diff --git a/source/part.h b/source/part.h index a3e065a..252d5a3 100644 --- a/source/part.h +++ b/source/part.h @@ -25,6 +25,7 @@ public: Loader(Part &, Resources &); ~Loader(); private: + void graphic_normal(const std::string &); void graphic(State, const std::string &); void align(float, float); void fill(float, float); -- 2.45.2