reverse engineering C# code incomplete (#1623)

seems because the comments who are not supported

take a look to this class, there are missing operations on the diagram

https://1drv.ms/u/s!ApLXJipceFJ0nOc6fvK7rO9SpdeIVg?e=FAS9mR

using System;

namespace MiniJeu

{

public abstract class Personnage

{

protected bool estVivant;

public Personnage()

{

estVivant = true;

}

public abstract void Attaque(Personnage p);

public void SubitDegats()//teste si le bon type est en action : uniquement les monstres

{

if (this is PersonnageAPointsDeVie)

{

throw new ArgumentException("SubitDegats() ne peut pas etre appelé par sur un personnage avec points de vie");

}

else

{

EstVivant = false;

}

}

public virtual void SubitDegats(int d)

{

EstVivant = false;

}

public int LanceLeDe()

{

return De.LanceLeDe();

}

// la propriete EstVivant est virtual et non abstaite comme dans l'énoncé car on ne peut pas la mettre en abstract

public virtual bool EstVivant

{

get { return estVivant; }

set { estVivant = value; }

}

}

}

Created
23 January 2020 21:33:30
Closed
27 January 2020 22:09:30
Requested by
fr016
State
Solved
Version
12.10
OperatingSystem
win 10 x64
Solved in
12.15

Dusan Rodina - softwareideas.net 24 January 2020 17:05:52

Thank you for your feedback.

Yes, you are right the problem is with the comments. The current parser has problems when a comment is placed between a block definition and a block content - i.e. between ) and {. It will be fixed in the next version which should be released on Monday.

TrackedRequestComment
Your Name:
You can use these formatting tags: [b]bold[/b] [i]italic[/i] [u]underline[/u] [url]www.example.com[/url] [code]some code[/code] [quote]quoted text[/quote] [list]one list item per line[/list]