Search the Community
Showing results for tags 'static'.
Found 5 results
-
Solid understanding on using Javascript ES5 access modifiers and inheritance
DoubleX posted a topic in Programming
This topic aims to explain how the patterns providing access modifiers and inheritance work in details. You're assumed to have a basic knowledge on using Javascript access modifiers and inheritance. The focus of this topic corresponds to 'Understanding' in the new version of the Bloom's Taxonomy. Contents I. Wrapped Prototype 1. Access Modifiers 2. Inheritance 3. Performance 4. Summary II. Composable Revealing Module 1. Access Modifiers 2. Inheritance 3. Performance 4. Summary III. Parasitic Inheritance 1. Access Modifiers 2. Inheritance 3. Performance 4. Summary IV. Reversed Inheritance Hierarchy 1. Access Modifiers 2. Inheritance 3. Performance 4. Summary V. Reversed Prototype Chain 1. Access Modifiers 2. Inheritance 3. Performance 4. Summary VI. Summary The topic will explore the following for each pattern: 1. How it provides/Why it doesn't provide private instance variables 2. How it provides/Why it doesn't private static functions/variables 3. How it provides/Why it doesn't protected functions/instance/static variables 4. How it provides/Why it doesn't provide inheritance I'll start to talk about the contents in the upcoming replies in this topic. For now, let's cite the summary in basic knowledge on using Javascript access modifiers and inheritance as both a preparation on what I'm going to cover and a revision on what you're assumed to know already: -
Basic knowledge on using Javascript ES5 access modifiers and inheritance
DoubleX posted a topic in Programming
Disclaimer: This topic's to provide some extra choices for those needing/wanting some protections from being able to access anything from anywhere while still allowing inheritance. As sometimes it completely makes sense for keeping everything public, these choices are entirely optional. Using any of them without any solid reason's just violating KISS for nothing, which should be avoided. This topic aims to use an easy, simple and small scenario to briefly cover some patterns illustrating Javascript ES5 access modifiers and inheritance. Bear in mind that those patterns can quickly become antipatterns if they're used without at least thinking twice. So you're assumed to have at least a basic knowledge on writing Javascript and have written at least several easy, simple and small js files which work without nontrivial bugs. The focus of this topic corresponds to 'Remembering' in the new version of the Bloom's Taxonomy. Please note that the following concepts will be used: 1. Final - Functions/variables that can't be redefined after their initial definitions 2. Private - Functions/variables only accessible by the enclosed class/instance/function 3. Protected - Functions/variables only accessible by the enclosed class/instance and their subclasses/instances 4. Public - Functions/variables accessible from anywhere 5. Static - Functions/variables shared by all instances of the same class On a side note: Strictly speaking, it's nearly impossible to always ensure an object method will always remain private/protected, as advanced programmers can, after thoroughly comprehended the object's API, reconstruct the whole object while preserving its external behaviors, even though its internal states will most likely be lost that way. However, it's such an unreasonably tedious task for nontrivial objects having nontrivial inheritance hierarchies that only truly trivial and/or valuable objects really worth such tremendous efforts. Therefore, let's just regard them as edge cases and move on. Warmup With all these in mind, let's get started. Situation With the context in place, the following patterns can finally come into play. All files implementing all these patterns, as well as their unit tests and integration tests, can be found in my Lockable-Container github. You're highly encouraged and recommended to read the simplest thing that could possibly work first, which is demonstrated by lockableContainerKiss.js. Wrapped Prototype Composable Revealing Module Parasitic Inheritance Reversed Inheritance Hierarchy Reversed Prototype Chain Summary I'm planning to open another topic to explain how these pattern works in details, which will lead to a solid understanding on using Javascript access modifers and inheritance. That's all for now. What do you think about these patterns? What do you think about Javascript access modifiers and inheritance in general? Let's drop your 2 cents here -
Hey folks! With many games comes many a request, and I guess it comes to my turn again. What am I in need of? Well, my friends of the forums; cat battlers! I'll place some pictures below to show the style of the cats, but first, I must say, if you want to negotiate something from this, please PM me. Both of these poses (among others) work well for what I would like. Thank you for your time.
-
Hello there, folks! I was wondering if anyone would like to draw dragonic wolves and elemental vixens for me, since I have no digital talent and like to slack. I'll post the descriptions below. The Leaf Vixen: Height/Weight The Leaf Vixen is small, but its size gives it the nimbleness it needs to protect itself. It weighs in at a mere 23 lbs. and only stands to be as tall as 2 feet. The Leaf Vixen: Diet/Appearance/Habitat This creature, despite being a dog-like creature, is a herbivore and tends to use the leaves around its tail as a secondary source of food. Unlike all the others, the Leaf Vixen can perform photosynthesis, and is of the Nature Element. The pale creamy tan compliments their habitat, although they normally sunbathe on rocks and other warm surfaces. Their front paws have leaves that they use for defense and have leaves that wrap around the tail. The Leaf Vixen will almost always be found in woodlands and forests. The ones in the forest are a tad darker than the woodland ones, but generally are around the same weight and size. The Blaze Vixen: Height/Weight The Blaze Vixen is small, but is a little larger than the Leaf Vixen. It weighs 30-40 lbs. and unlike the Leaf Vixen, is only is 1 1/2 feet tall. The Blaze Vixen: Diet/Appearance/Habitat This creature sets prey aflame to catch it, and is a carnivore. The Blaze Vixen is an orangish red color and has a path of pure red around its muzzle. It lives alone, and will only come out around noon, or the warmest part of a day. Their front paws closely resemble a spiral of flames, and their tail has a twisted tuft of fur around it. The Blaze Vixen hates water, so desert-like areas are the most likely places to find one. Rarely, though, are they found in woodlands and snowy climates. The Angel Vixen: Height/Weight The Angel Vixen is the only creature that weighs the lightest, but looks the heaviest. They weigh an astonishing 7.3 lbs. and stand at 2 feet. Their bodies allow a gentle jump to and fro when needed, but their size makes them really fragile. The Angel Vixen: Diet/Appearance/Habitat The Angel Vixen normally eats fruits, but rarely small rodents can be found killed and nibbled on. They prefer light food, only to keep their skimpy figure to move swiftly. The body of a Angel Vixen is strange. The fur on the sides are a bit darker and gives an appearance of feathery wings. The fur also fluffs out more, giving it a look of a heavier weight. Unlike most wild creatures, Angel Vixens love to play with anyone and anything. They will also heal wounds in tribute of their own life force. These are famous among hospitals, but there is an urge to stop. As quoted from a Scalvosian doctor, “Using them can basically result in them becoming extinct. We must let them be free and not use them as tools.†Angel Vixens are found normally on mountainous terrain, but can be found in cities, forests, and almost anywhere else. The Shadow Vixen: Height/Weight The Shadow Vixen is the heaviest of the group, and also the tallest. They weigh in at 100 lbs. and stands at 4 feet tall. The Shadow Vixen: Diet/Appearance/Habitat The Shadow Vixen will always gorge itself on rats, birds, and Chaingras, and eats roughly twice its body weight daily. Surprisingly, they move around more often than water. Shadow Vixens always move around, totaling around 15 miles a day. Their hyperactive bodies give them a touch more endurance than the Hydro Vixen, but they can’t really outrun anything. They are a charcoal black, with a white tuft of fur in between their front legs, and have white strands around their front paws and tail. Shadow Vixens live mainly in caves, but they also live in damp forests and swamps. The Cave Vixen: Height/Weight The Cave Vixen is a average one, but very agile as it is. They weigh 45-60 lbs. and stand at 3 1/2 feet. The Cave Vixen: Diet/Appearance/Habitat The Cave Vixen lives in dark, damp areas, so food is limited. It normally eats insects, but it can also eat moss and not be affected by the toxins. It’s recommended not to bother a Cave Vixen, since their fronts paws are where most of its strength is. They are a damp brown, and have a tan tuft around their tail. The Hydro Vixen: Height/Weight The Hydro Vixen is built for swimming and hunting in the water, hence the name. It weighs 60-70 lbs. and stands at 3 to 3 1/2 feet tall. The Hydro Vixen: Diet/Appearance/Habitat Given by the name, these dazzling creatures live on beaches and banks. They mainly eat fish, but they’ve been reported to have taken down serpents twice their size. A Hydro Vixen looks like a blue dog, but has tufts of fur, resembling a crest of a wave, around all four of its paws. These tufts, following its upside down wave on its chest, are a light blue. Hydro Vixens are thought to be related to the Crestragas, but it has not be proven as of yet. The Bolteraga: Height/Weight The Bolteraga is a dragonic wolf that’s around 5 1/2 feet tall and weighs around 630 lbs. The Bolteraga: Diet/Appearance/Habitat This breed will almost never leave a stone unturned, due to the mountainous terrain. Bolteragas are carnivores, and prey on deer and other animals that live around, and on the mountain. Bolteragas are yellow, followed with bright orange spines down its back. Its hind legs are larger, and built for jumping around. They control lightning, and will howl when an approaching thunderstorm is nearby. The Bloveraga: Height/Weight The Bloveraga has a fiery temper,complemented by its size. It weighs in at 700 lbs. and stands at 5 feet tall. The Bloveraga: Diet/Appearance/Habitat The Bloveraga is a carnivore, but their habitat doesn’t meet their demands, thus they will move away from their home to hunt. They are a bold red, with orangish red spines that run along their back, and have normally sharp orange eyes. Bolveragas live in volcanic areas, and due to their makeup and environment, they know how to control fire at their will. The Frezeraga: Height/Weight This frozen wolf is around 800 lbs. fully grown, and stands at 5 ft. The Frezeraga: Diet/Appearance/Habitat Frezeragas live in tundras, and in arctic areas. Their diet is focused on small mammals, but they have hunted large creatures, such as dragons, before. They’re a light blue, complemented by the dark blue spines that run down their back. Frezeragas were normally bred for their coats, but due to their now low numbers, they haven’t been found much anymore. If an equation was present, this is what it’d be. For every two Frezeragas, a male and a female, they can produce up to five pups. from there, if any die from sickness, the number decreases, normally to three. Now, their population sits at four hundred, so 400(2+3)=2,000. Now, take all that die for people’s needs, 2,000-500=1,500. Then take the amount that don’t make it due to starvation or illness, 1,500-1,000=500. Finally, end it with the amount that can’t breed, 500/2=250. This gives, respectfully, 125 Frezeragas a chance to mate (Given if half were of each gender). Take the amount that don’t find a mate in their lifetime, 250-100=150. Now, if that number were to reproduce, it would start with 150(2+3). They, somehow, have remained alive though, so there is a fighting chance. The Crestraga: Height/Weight The Crestraga is among the most fearsome, weighing at 900 lbs. and standing at 5 ft. The Crestraga: Diet/Appearance/Habitat The Crestraga lives on beaches, and eats fish, birds, and other small creatures. Don’t let that part fool you. It takes only one of these to take down an entire horde of dragons, which is also apart of their diet. Their heavy weight gives them an advantage when it comes to swimming, and since they can breathe underwater, it’s pointless to run. Crestragas are blue, with normally crimson red irises. They have damp blue spines, that aren’t that noticeable, running down their back, and their fur is known to be coarse, but smooth. The Spiritraga: Height/Weight These “ghosts†of the world are around 300 lbs. and stand at a simple 4 ft. The Spiritraga: Diet/Appearance/Habitat Spiritragas are among the most fearsome for their strength and smarts. But, their major flaw is that they only live in packs of two. They’re white, and look like normal wolves, save their paws, that have more of a coarse look. They live solely on the energy that leaks off of souls, and can really never truly die. Spiritragas live for 500 years, and live in mountainous areas. They don’t even need to be within any area to get their food. It’s a good thing to not go looking for one, since they can simply kill you by taking your soul, even if you were immortal. The one that seemed to have escaped me, which is the Galeaga, is an ashy white. they're huge, sitting at 980 pounds. They have grey spines down their back.
-
Author: Mr. Trivel Name: Static EXP Created: 2015-10-26 Version: 1.0 What does it do? Makes every level require same amount of EXP. Enemies give exp depending on actor level. How to use? Set parameters in Plugin Manager. And use tags for enemy note fields: <level: X> - Level of enemy. If no level noted assumes level 1. <custom_base_exp> - instead of using default base EXP Plugin: <Link: Github> How to download the Plugin: Click the link above, there will be a button named Raw, press Right Click -> Save As. Terms of Use: Don't remove the header or claim that you wrote this plugin. Credit Mr. Trivel if using this plugin in your project. Free for commercial and non-commercial projects.


