home *** CD-ROM | disk | FTP | other *** search
- class org.cove.flade.primitives.RectangleParticle extends org.cove.flade.primitives.Particle
- {
- var width;
- var height;
- var vertex;
- var extents;
- var isVisible;
- var dmc;
- var curr;
- function RectangleParticle(px, py, w, h, rootmc)
- {
- super(px,py,rootmc);
- this.width = w;
- this.height = h;
- this.vertex = new org.cove.flade.util.Vector(0,0);
- this.extents = new org.cove.flade.util.Vector(w / 2,h / 2);
- }
- function paint()
- {
- if(this.isVisible)
- {
- this.dmc.clear();
- this.dmc.lineStyle(0,6710886,100);
- org.cove.flade.graphics.Graphics.paintRectangle(this.dmc,this.curr.x,this.curr.y,this.width,this.height);
- }
- }
- function checkCollision(surface, sysObj)
- {
- surface.resolveRectangleCollision(this,sysObj);
- }
- }
-