From 982605ee21941358080b9e20c9b9b2c2006f2d6a Mon Sep 17 00:00:00 2001 From: Clyne Sullivan Date: Tue, 10 Sep 2019 20:13:52 -0400 Subject: added Text component and skeleton system --- src/text.hpp | 49 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 src/text.hpp (limited to 'src/text.hpp') diff --git a/src/text.hpp b/src/text.hpp new file mode 100644 index 0000000..183e655 --- /dev/null +++ b/src/text.hpp @@ -0,0 +1,49 @@ +/** + * @file text.hpp + * Manages entity text. + * + * Copyright (C) 2019 Clyne Sullivan + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + +#ifndef SYSTEM_TEXT_HPP_ +#define SYSTEM_TEXT_HPP_ + +#include +#include + +/** + * @class PhysicsSystem + * Handles the position and velocity updating of all entities + */ +class TextSystem : public entityx::System +{ +public: + /** + * Prepares the system for running. + */ + void configure(entityx::EntityManager& entities, + entityx::EventManager& events) final; + + /** + * Draws the text for all entities. + */ + void update(entityx::EntityManager& entites, + entityx::EventManager& events, + entityx::TimeDelta dt) final; +}; + +#endif // SYSTEM_TEXT_HPP_ + -- cgit v1.2.3