| 1 | sub new { | ||
| 2 | my $class = @_; | ||
| 3 | |||
| 4 | ### This Entity class should be overridden so it can hit or be | ||
| 5 | ### hit. An Action may use its hit functionality | ||
| 6 | $self = { hit => 0, hitted => 0, | ||
| 7 | hitmethod => $hitf, tohitmethod => $tohitf, }; | ||
| 8 | |||
| 9 | bless $self, $class; | ||
| 10 | }; | ||
| 11 | |||
| 12 | 1; | ||
| 13 |