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

mass.cc

Go to the documentation of this file.
00001 #include "mass.hh"
00002 #include "register.hh"
00003 #include <stdlib.h>
00004 #include "element.hh"
00005 
00006 namespace anoid {
00007     namespace plugin {
00008 
00009         using namespace config;
00010 
00011         void Mass::init(Configuration &c) {
00012             mass = c.getDouble("mass");
00013             Ability::init(c);
00014             registerName("Mass");
00015         }
00016 
00017         double Mass::getMass() {
00018             return mass;
00019         }
00020 
00021         Mass::Mass(double m = 0): mass(m) {
00022         }
00023 
00024         Register(Mass)
00025 
00026     };
00027 };

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