Comments (2)
So I gave this a go I think you will still be happy with the results. Admittedly, I had to make a couple changes from your original idea due to some added functionality but hopefully you agree with the changes. You now have the following options:
MOVE(ship, speed, x, y); -- automatically calculates direction. must have enough fuel still to stop
MOVE(ship, x, y); -- automatically calculates direction and best possible speed
MOVE(ship, speed, direction, x, y) -- Still works as before
I was not able to create the MOVE(ship, speed, direction) overload because the same parameters were already taken by MOVE(ship, x, y). I think MOVE(ship, X,Y), which will calculate both direction and optimal speed for you, will be a lot more popular of a command so I gave it the easier overload.
I also haven't moved any code to the other functions. I didn't write most of MOVE so I don't feel like changing other segments around. I will leave that to the MOVE expert (tigereye). Right now all the overloads just pass all the details to the main MOVE function.
Thanks again for your suggestion! If you don't agree with the way I implemented them I am certainly open to any constructive criticism you may have.
-Abstrct
from schemaverse.
Excellent work. I kept looking at the page threateningly, but my own projects yelled at me louder. Thank you Abstrct.
from schemaverse.
Related Issues (20)
- Some performancey things HOT 4
- Per-ship policy HOT 4
- Suggest change to ships_near_ships HOT 1
- Log running of scripts in the event log
- Suggestion: Add in a regression test of some sort HOT 3
- my_ships view inducing Seq Scans on underlying tables HOT 1
- Split events into private/global tables HOT 3
- Serious bug in upgrade() HOT 2
- Performance tuning of in_range_planet() HOT 4
- Recommend having ships_near_ships managed purely in tic HOT 4
- Setting action/action_target_id not working with new ship insert.
- Can't create new ships HOT 2
- ship_course_control pushes my ship past it's max speed. HOT 2
- Accepts null PW, apparently no way to change PW HOT 5
- Owner user is a bit over-capable HOT 1
- Can't open a single link on the site HOT 3
- cannot register HOT 5
- Is the Schemaverse public server still operational? HOT 3
- Proposal to Restrict Table Creation Permissions
- Schemaverse.com site is cannot be reach
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from schemaverse.