#include <Extras.h>
Inheritance diagram for Extras:


Public Member Functions | |
| Extras (const Vector2D &c, const double r, const double e, const long int col) | |
| ~Extras () | |
| bool | is_alive () |
| virtual void | die () |
| double | get_energy () |
Protected Attributes | |
| double | energy |
| bool | alive |
| char | log_file_char |
|
||||||||||||||||||||
|
Definition at line 35 of file Extras.cc. References alive, and Circle::draw_shape(). 00036 : Circle(c, r, col), energy(e) 00037 { 00038 alive = true; 00039 #ifndef NO_GRAPHICS 00040 if( !no_graphics ) 00041 draw_shape( false ); 00042 #endif 00043 }
|
Here is the call graph for this function:

|
|
Definition at line 31 of file Extras.h. 00031 {}
|
|
|
Definition at line 70 of file Extras.cc. References alive, Gui::get_arenawindow_p(), Gui::get_bg_gdk_colour_p(), ArenaController::is_realtime(), log_file_char, realtime_arena, the_arena_controller, and the_gui. Referenced by Robot::get_messages(), Shot::move(), and Robot::move(). 00071 {
00072 alive = false;
00073 #ifndef NO_GRAPHICS
00074 if (!no_graphics )
00075 the_gui.get_arenawindow_p()->
00076 draw_circle( last_drawn_center, last_drawn_radius,
00077 *(the_gui.get_bg_gdk_colour_p()), true );
00078 #endif
00079
00080 if( the_arena_controller.is_realtime() )
00081 realtime_arena.print_to_logfile( 'D', (int)log_file_char, id );
00082 }
|
Here is the call graph for this function:

|
|
Definition at line 35 of file Extras.h. Referenced by Robot::move(). 00035 { return energy; }
|
|
|
Definition at line 33 of file Extras.h. 00033 { return alive; }
|
|
|
|
|
|
|
|
|
Definition at line 40 of file Extras.h. Referenced by die(). |
1.3.9.1