X-Git-Url: https://fleuret.org/cgi-bin/gitweb/gitweb.cgi?a=blobdiff_plain;f=task.h;h=6cfbb934682ba794e67160ffb77f4b4a96bf4955;hb=4e550948439a6cd6f318c230ed53adfabcd2ba43;hp=b472f7346da65179d81ba8114f0644091659f41c;hpb=ba46b057f3e2613a86f2dea7fa8022990482c735;p=universe.git diff --git a/task.h b/task.h index b472f73..6cfbb93 100644 --- a/task.h +++ b/task.h @@ -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: task.h,v 1.18 2006-12-17 19:22:19 fleuret Exp $ +// Written and (C) by Francois Fleuret +// Contact for comments & bug reports #ifndef TASK_H #define TASK_H @@ -28,7 +15,7 @@ class Task { public: virtual ~Task(); // A canonical name for the task, upper caps, digits and "_" - virtual char *name() = 0; + virtual const char *name() = 0; // A task can be started with several degrees of difficulty virtual int nb_degrees() = 0; // Returns the size of the area @@ -46,6 +33,6 @@ public: // Loads a shared object file -Task *load_task(char *filename); +Task *load_task(const char *filename); #endif