XMBattleStatus.pm
xpertmud/appdata/perl/XMBattleStatus.pm · 493 B
From the archive xpertmud-2005-10-21.zip
Download the archive « Back to the archive contents
package XMBattleStatus;
use strict;
use vars qw/@ISA/;
use warnings;
use diagnostics;
@ISA = qw(XMPlugin);
sub new {
my ($this,$title)=@_;
my $class = ref($this) || $this;
# SUPER::new??
my $self=new XMPlugin("xmud_battletech","BattleStatusWidget",$title);
return undef unless defined $self;
bless $self,$class;
return $self;
}
sub function {
my ($self,$id,$args)=@_;
if ($id==0) {
return "Function 0 called!";
} else {
return SUPER::function(@_);
}
}
1;