Adonthell  0.4
drawable.cc
Go to the documentation of this file.
1 /*
2  Copyright (C) 1999/2000/2001 Alexandre Courbot
3  Part of the Adonthell Project <http://adonthell.nongnu.org>
4 
5  Adonthell is free software; you can redistribute it and/or modify
6  it under the terms of the GNU General Public License as published by
7  the Free Software Foundation; either version 2 of the License, or
8  (at your option) any later version.
9 
10  Adonthell is distributed in the hope that it will be useful,
11  but WITHOUT ANY WARRANTY; without even the implied warranty of
12  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  GNU General Public License for more details.
14 
15  You should have received a copy of the GNU General Public License
16  along with Adonthell. If not, see <http://www.gnu.org/licenses/>.
17 */
18 
19 
20 /**
21  * @file drawable.cc
22  * @author Alexandre Courbot <alexandrecourbot@linuxgames.com>
23  *
24  * @brief Defines the drawable class.
25  */
26 
27 
28 #include "drawable.h"
29 
30 
31 // Public methods.
32 
33 
35 {
36  set_length (0);
37  set_height (0);
38 }
39 
41 {
42 }
43 
45 {
46  return true;
47 }
48 
50 {
51  return true;
52 }
drawable::drawable
drawable()
Default constructor.
Definition: drawable.cc:34
drawable::set_height
void set_height(u_int16 h)
Sets the height of the drawable.
Definition: drawable.h:139
drawable::set_length
void set_length(u_int16 l)
Sets the length of the drawable.
Definition: drawable.h:129
drawable::update
virtual bool update()
Virtual update function, provided for objects which doesn't need one.
Definition: drawable.cc:44
drawable.h
Declares the drawable class.
drawable::~drawable
virtual ~drawable()
Destructor.
Definition: drawable.cc:40
drawable::input_update
virtual bool input_update()
Virtual input update function, provided for objects which doesn't need one.
Definition: drawable.cc:49