BlueGit

blue-star tribegen

Files

tribegen / web / src / Events / Event.php

Event.php

injuries, cures, event edits
timfa Tim Falken · pushed by timfa · 9 months ago
146dd342 History
Event.php 852 B Download Raw
1<?php
2
3require_once __DIR__ . '/../../src/Classes/Tribe.php';
4
5abstract class Event
6{
7 protected $tribe;
8 protected $story = '';
9 protected $participants = []; // array of kobold ids
10 protected $minParticipants = 1;
11 protected $maxParticipants = 3;
12
13 public function __construct(Tribe $tribe)
14 {
15 $this->tribe = $tribe;
16 }
17
18 abstract public function execute();
19
20 public function setParticipants(array $koboldIds)
21 {
22 $this->participants = $koboldIds;
23 }
24
25 public function getParticipants()
26 {
27 return $this->participants;
28 }
29
30 public function getMinParticipants()
31 {
32 return $this->minParticipants;
33 }
34
35 public function getMaxParticipants()
36 {
37 return $this->maxParticipants;
38 }
39
40 public function getStory()
41 {
42 return $this->story;
43 }
44}