Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

position.cc

Go to the documentation of this file.
00001 #include "position.hh"
00002 #include "register.hh"
00003 #include "element.hh"
00004 #include "abstractworld.hh"
00005 
00006 namespace anoid {
00007     namespace plugin {
00008 
00009         using namespace simple;
00010         using namespace config;
00011 
00012         Vector Position::getPosition() {
00013             return position;
00014         }
00015 
00016         void Position::redraw() {
00017             getWorld()->getContext()->translate(position);
00018             Ability::redraw();
00019         }
00020 
00021         void Position::init(Configuration &c) {
00022             position = c.getVector("position");
00023             Ability::init(c);
00024             registerName("Position");
00025         }
00026 
00027         Register(Position)
00028 
00029     };
00030 };

Anoid NG © Michael Westergaard, Martin Stig Stissing, Ronni Michael Laursen, and Kristian Bisgaard Lassen