using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Drawing;

namespace pcd_g1
{
	class SlopeTypeEBlockStageObject : BlockStageObject
	{
		//約30度傾斜の下半分。
		public SlopeTypeEBlockStageObject(int x, int y, string imgName, bool right)
			: base(x, y)
		{
			image = ImageManager.Search(imgName);
			Range = new SlopeTypeACollideRange(this);
			if (!right)
			{
				((SlopeTypeACollideRange)Range).P1 = new Point(0, this.Height);
				((SlopeTypeACollideRange)Range).P2 = new Point(this.Width, this.Height >> 1);
			}
			else
			{
				((SlopeTypeACollideRange)Range).P1 = new Point(0, this.Height >> 1);
				((SlopeTypeACollideRange)Range).P2 = new Point(this.Width, this.Height);
			}
		}

		public override bool EventProc(EventType type, IStageObject sender, CollideDirection direction)
		{
			return base.EventProc(type, sender, direction);
		}
	}
}
