Jump to content
  • 0

[Question]TYPE PLAYER


Question

Posted

Autes oi dio methods ftanoun gia na doulepsei to isBugger kai to setBugger(stin periptosi mas)

public boolean isBugger() 
{ 
	return _Bugger; 
} 

public void setBugger(boolean Bugger) 
{ 
	_Bugger = Bugger;
}

? xriazete tpt alo?

6 answers to this question

Recommended Posts

  • 0
Posted

Afou exeis setter kai getter :

 

private boolean _Bugger;

 

den xreiazete na einai public h metablhth.

o ne exeis dikio. :P ok.. auta ta 3 . xriazete tipota alo...? oxi etc?
  • 0
Posted

Oxi, alla ayto mono tou den exei kapia sxesh me bugs kai etc. Mia metablith einai xoris leitourgikothta pros to paron ( an den prostheseis kai alo kodika diladh ).

ne auto zitaw..ti litourgikotita tha tin pros8eso egw: paradigma: an o char exei 500 pvp kserw gw na ginete isBugger(setBugger dld) kai meta an ine bugger px ...gia ginete announcements to onoma tou...

gi auto pou lew ine ok? ( kai enoite pos dn exei kamia sxesi me bugs :P )

 

px sto set:

public void setBugger(boolean bugger)
{
	if (bugger){
		Announcements.getInstance().announceToAll("Player "+getName()+" has become a bugger");
}
	else{
		Announcements.getInstance().announceToAll("Player "+getName()+" has lose bug status");
}
_bugger = bugger;
}

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


×
×
  • Create New...

Important Information

This community uses essential cookies to function properly. Non-essential cookies and third-party services are used only with your consent. Read our Privacy Policy and We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue..