X-Git-Url: https://fleuret.org/cgi-bin/gitweb/gitweb.cgi?a=blobdiff_plain;f=dummy.cc;h=67b2fd11ba4740974e53985ff4c6e88b89bbde09;hb=599bf3fa2eb01b05ec677b628e65adb2fe4f91c3;hp=8173717d8d11405e0dd26834880bd4667c5e52d4;hpb=ba46b057f3e2613a86f2dea7fa8022990482c735;p=universe.git diff --git a/dummy.cc b/dummy.cc index 8173717..67b2fd1 100644 --- a/dummy.cc +++ b/dummy.cc @@ -1,19 +1,6 @@ -//////////////////////////////////////////////////////////////////////////////// -// This program is free software; you can redistribute it and/or // -// modify it under the terms of the GNU General Public License // -// version 2 as published by the Free Software Foundation. // -// // -// 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. // -// // -// Written and (C) by François Fleuret // -// Contact for comments & bug reports // -//////////////////////////////////////////////////////////////////////////////// - -// $Id: dummy.cc,v 1.16 2006-07-21 08:28:27 fleuret Exp $ +// Written and (C) by Francois Fleuret +// Contact for comments & bug reports #include "task.h" #include "universe.h" @@ -22,7 +9,7 @@ class Dummy : public Task { public: - virtual char *name() { return "DUMMY"; } + virtual const char *name() { return "DUMMY"; } virtual int nb_degrees() { return 1; } @@ -45,7 +32,7 @@ public: p->set_vertex(3, 0, height); p->set_position(x0 + deltax/2, y0 + deltay/2, 0); p->set_speed(0, 0, 0); - universe->initialize(p); + universe->initialize_polygon(p); universe->add_polygon(p); } @@ -59,7 +46,7 @@ public: p->set_vertex(3, 0, height); p->set_position(x0, y0 + deltay/2, 0); p->set_speed(0, 0, 0); - universe->initialize(p); + universe->initialize_polygon(p); universe->add_polygon(p); } @@ -72,7 +59,7 @@ public: p->set_vertex(3, 0, height); p->set_position(x0 + deltax, y0 + deltay/2, 0); p->set_speed(0, 0, 0); - universe->initialize(p); + universe->initialize_polygon(p); universe->add_polygon(p); p = new Polygon(1.0, 0.8, 0.2, 0.8, 0, 0, 8); @@ -86,7 +73,7 @@ public: p->set_vertex(7, 0.0, 40.0); p->set_position(120, 420, 0); p->set_speed(0, 0, 0); - universe->initialize(p); + universe->initialize_polygon(p); universe->add_polygon(p); int ne = 25; @@ -97,7 +84,7 @@ public: } p->set_position(400, 400, 0); p->set_speed(0, 0, 0); - universe->initialize(p); + universe->initialize_polygon(p); universe->add_polygon(p); }