コード例 #1
0
 public override Cell reproduce(Coordinate anOffSet)
 {
     return(new Obstacle(this));
     //throw new NotImplementedException();
 }
コード例 #2
0
        //public char DefaultPreyImage = 'f';

        public Prey(Coordinate aCoord) : base(aCoord)//, char image) :base(offset, image)
        {
            _offset          = aCoord;
            _image           = DefaultPreyImage;
            _timeToReproduce = 6;
        }
コード例 #3
0
 public Obstacle(Coordinate aCoord)
     : base(aCoord)
 {
     _offset = aCoord;
     _image  = ObstacleImage;
 }