/***************************************************************************
 *   Copyright (C) 2004 by ian reinhart geiser                             *
 *   ian@geiseri.com                                                       *
 *                                                                         *
 *   This program is free software; you can redistribute it and/or modify  *
 *   it under the terms of the GNU General Public License as published by  *
 *   the Free Software Foundation; either version 2 of the License, or     *
 *   (at your option) any later version.                                   *
 *                                                                         *
 *   This program is distributed in the hope that it will be useful,       *
 *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
 *   GNU General Public License for more details.                          *
 *                                                                         *
 *   You should have received a copy of the GNU General Public License     *
 *   along with this program; if not, write to the                         *
 *   Free Software Foundation, Inc.,                                       *
 *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             *
 ***************************************************************************/
#include "bandit.h"
#include "leather.h"
#include "shortsword.h"
#include "util.h"
Bandit::Bandit(): Monster("Bandit",2)
{
	m_attackType = CUT;
	m_dexterity = roll( 4,4 );
	m_strength = roll( 4,4 );
	m_hitpoints = roll( 2,6 );
	m_thaco = 19;
	m_xpValue = 15;
	m_armor = new Leather();
	m_wepon = new ShortSword();
	m_skill = roll(10,10);
	m_gold = roll( 1,4 );
	m_attacks = 1;
	m_morale = roll( 1,4 );
	m_isUndead = false;
	m_sprite = QPixmap(16,16);
	m_sprite.fill(Qt::blue);
}


Bandit::~Bandit()
{
}

BanditLevel1::BanditLevel1( ) : Bandit()
{
	m_dexterity = roll( 4,6 );
	m_strength = roll( 4,6 );
	m_hitpoints = roll( 4,4 );
	m_thaco = 15;
	m_xpValue = 25;
	m_skill = roll(11,10);
	m_gold = roll( 2,4 );
	m_attacks = 1;
	m_morale = roll( 1,4 );

}

BanditLevel1::~ BanditLevel1( )
{
}



