Editing
Isotopeia:Electron neutrino
(section)
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
==== Methods ==== The following list contains all of the methods implemented in <code>BuildingEN</code>. ===== <code>void .buy(int n = 1)</code> ===== Purchases the amount <code>n</code> (by default, <code>1</code>) of an electron neutrino building, if you have the required electorn neutrinos. ===== <code>void .interval()</code> ===== Starts an interval to gain <code>this.ps</code> electron neutrinos per second. This is added to the <code>intervals</code> variable so that it can be cleared later. ===== <code>void .buildUI(bool isModded = false)</code> ===== Constructs the UI/purchase menu for this building. Note that <code>isModded</code> is not needed and should always be unset or <code>false</code>, but this is by default <code>false</code>. ===== <code>void .refreshCount()</code> ===== Refreshes this building's internal count for how many there are of this building. This affects the price calculated via an recursive function defined as follows: <math> p_{n+1} = \left \lfloor 1.25p_n \right \rfloor </math> ...where <math>p_{n+1}</math> is defined as the new price for this building after <math>n</math> buildings, <math>n</math> as the current number of buildings owned, <math>p_n</math> as the previous building price. <math>p_0</math> is also defined as the initial price of the building, as <code>this.price</code> in code. ===== <code>void .refreshIntervals()</code> ===== <code>refreshIntervals</code> simply starts <code>this.count</code> intervals after refreshing the count using <code>.refreshCount()</code>. Note that this method does <b>not</b> restart current intervals, but instead starts new ones.
Summary:
Please note that all contributions to matthyWiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
MatthyWiki:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Navigation menu
Personal tools
Not logged in
Talk
Contributions
Create account
Log in
Namespaces
Isotopeia
Discussion
English
Views
Read
Edit
View history
More
Search
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Tools
What links here
Related changes
Special pages
Page information