#pragma once

#include	"Common.h"

// the level class to handle the background (level)
class CLevel
{
public:
	CLevel();
	~CLevel();

	// check the given sprite id with scenery for collision.
	int		CheckCollisionWithLevel(int iSprite);

private:
	friend class CPlayer;

	void CreateStrip(int iImage, float fX, float fY, int iMode);

	// store image id's for background, starfield and obstacles
	int		m_iBackImgID		= 0;
	// here we get the defined id in Common.h
	int		m_iStarfieldImgID	= IMGID_PARTICLES;
	int		m_iObstacleImgID	= 0;

	// store sprite id for background
	int		m_iBackSprID		= 0;

	// store particle effects id for starfield
	int		m_iStarfieldPfxID	= 0;

	// store sprite id's for the level
	int		m_iScenery[1000]	= {};
	int		m_iSceneryCount		= 0;
};

