Help a beginner?
hey, first post, so thank you in advance for your help.
i'm new c#, no experience whatsoever, i have various skills in procedural programming , skills in vb 6/vb.net and action-script.
i'm starting new project college course requires me make basic text based games shows use of classes , use appropriate class building diagram, program has show class use , function example: 1 room load, fight 1 enemy.
the game works moving room room fighting opponents and collecting upgrades, although this doesn't need implemented in version, running piece of code.
here classes have made in star uml:
http://i.imgur.com/rpmud.png
the code generated main program was:
using system; using system.collections.generic; using system.linq; using system.text; namespace dungeon_crawler { class program { static void main(string[] args) { } } }
the code other classes automatically generated code star uml, example:
public class stats : hero{ public int health ; public int weaponlevel ; public int armourlevel ; public stirng name ; public void setweaponlevel(int aweapon){ } public void setarmourlevel(int aarmourlevel){ } public int getweaponlevel(){ } public int getarmourlevel(){ } public void sethealth(int ahealth){ } public int gethealth(){ } public void setname(string aname){ } public string getname(){ } }
but have plenty of errors regarding all of variable names , "boolean" underlined in red throughout program code.
i have no idea direction should head in or should begin.
any knowledge shared appreciated.
hi welcome community.
if write function defenetly it must wants return value declared in function type
public int getweaponlevel(){ return 1; } public int getarmourlevel(){ return 2; }please check this. best sucessfull programming
with , regards
sambath raj.c
click "proposed answer by" if post solves problem or "vote helpful" if post has been useful you
happy programming!
Visual Studio Languages , .NET Framework > Visual C#
Comments
Post a Comment