1 # This file is part of the graph-includes package
3 # (c) 2005 Yann Dirson <ydirson@altern.org>
4 # Distributed under version 2 of the GNU GPL.
6 package graphincludes
::project
::wesnoth
;
7 use graphincludes
::project
::default;
8 our @ISA = qw(graphincludes::project::default);
12 my ($file,$level) = @_;
13 $level = $main::minshow
unless defined $level;
15 $file =~ s/^$self->{PFXSTRIP}// if defined $self->{PFXSTRIP
};
19 } elsif ($level == 1) {
20 $file =~ s/\.[^.]*$//;
21 return 'ai' if $file =~ m/^ai_(move|attack)$/;
23 } elsif ($level == 2) {
24 if ($file =~ m!^(variable|server/variable|game_events)\.! ) {
26 } elsif ($file =~ m!^(multiplayer|ai).*!) {
28 } elsif ($file =~ m!^(mapgen|mapgen_dialog|cavegen|map_create)\..*!) {
30 } elsif ($file =~ m!^(array|astarnode|config|filesystem|game_config|gettext|global|language|log|map|pathfind|pathutils|race|random|scoped_resource|terrain|thread|unit|util|variable|wassert|(.*/xcoll))\..*!) {
32 } elsif ($file =~ m!^(clipboard|cursor|font|image|sdl_utils|tooltips|video)\..*!) {
34 } elsif ($file =~ m!^(events|preferences|show_dialog)\..*!) {
36 } elsif ($file =~ m!^(editor|server|serialization|widgets)/.*!) {
47 serialization
=> 'steelblue1',
48 variable
=> 'slateblue1',
52 graphics
=> 'peachpuff',
54 guicore
=> 'lavenderblush',
56 multiplayer
=> 'palegreen',
65 return {'src/font.cpp' => {'src/team.hpp' => 'team colors' },
66 'src/language.cpp' => {'src/preferences.hpp' => 'split out graph. stuff from preferences'},