Hello, i guess its a pretty basic problem. I try to throw an event from the contstructor of this function... I have done some tutorials on events, and guess I know how they work, but I keep getting a nullReferenceError when running this piece of code :
......
public delegate void MovementEventHandler();
///
/// Summary description for Beagle.
///
public class Beagle
{
private int x;
private int y;
public bool uptodate;
public event MovementEventHandler Movement;
public Beagle()
{
new Beagle(0,0);
}
public Beagle(int x, int y){
this.x = x;
this.y = y;
// Update world
Movement();
}
....
}
Thanks in advance !