<?php

require_once __DIR__ . '/../../src/Classes/Tribe.php';

abstract class Event
{
    protected $tribe;
    protected $story = '';
    protected $participants = []; // array of kobold ids
    protected $minParticipants = 1;
    protected $maxParticipants = 3;

    public function __construct(Tribe $tribe)
    {
        $this->tribe = $tribe;
    }

    abstract public function execute();

    public function setParticipants(array $koboldIds)
    {
        $this->participants = $koboldIds;
    }

    public function getParticipants()
    {
        return $this->participants;
    }

    public function getMinParticipants()
    {
        return $this->minParticipants;
    }

    public function getMaxParticipants()
    {
        return $this->maxParticipants;
    }

    public function getStory()
    {
        return $this->story;
    }
}
