package express.lines;

import express.awt.*;
import java.awt.Color;
import java.awt.Graphics;
import java.util.Vector;
import java.util.Date;

abstract class MovingLine extends Vector implements RedrawableLine {

//	long startTime;
//	long currentTime;
//	int startX, startY;
	int R, G, B;

	
//	boolean changing = true;
	Color lineColor;
	
	boolean living = true;	
	
	public MovingLine(int x, int y, long t, Color lineColor) {
		
		super();
			
		this.addElement( new TimedPoint(x,y,t) );
			
	//	this.startTime = t;
	//	this.startX = x;
	//	this.startY = y;
		
		this.lineColor = lineColor;
		
		this.R = lineColor.getRed();
		this.G = lineColor.getGreen();
		this.B = lineColor.getBlue();	
	}
	
	
	public void addPoint(int x, int y, long t) {
		this.addElement( new TimedPoint(x,y,t) );
	}

	public boolean living() {
		return living;
	}

	
	public void setLineColor(Color lineColor) {
		
	}
		
	public void redraw(Graphics g) {
		
	}
	
	public void move() {
		
	}
	
	
}
