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;
}

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...