Comments (1)
- Good news: Interaction of the user with Roassal elements seems very nice and easy.
- I created a new class in cormas-ui called CMDraggableSpatialEntity. I understand it as a feature that you can add to all graphical elements representing cormas SpatialEntities.
- You can test in CMFiremanModel example9: Now, when you select a point representing a fireman and drag and drop it to a location (I only tested inside the space) and the fireman will move to the new spot.
- I add the feature at the moment when agent views are created in the CMSimulationGrid (at the initialisation and during the simu), so all your models should benefit this (i created example 5 in ECEC for instance that only go slower so that you can catch the agents..)
-Note that once you have defined the feature, it is very easy to add it to ellements. i only added one line in the functions were entity views are created: (
"newSituatedEntitiesViews do: [:nse | nse @ CMDraggableSituatedEntity ]"
).
And if you look at the class "CMDraggableSituatedEntity" you can see that it is very simple (only one method) because it inheritates from a roassal class doing most of the job.
from cormas.
Related Issues (20)
- Add Cormas-Tests and Cormas-Mocks packages to the Core baseline group
- Use endsWith: instead of endsWithSubCollection:
- Use SingularizePluralize instead of Grease Inflector
- Remove Pharo 8 from the baseline
- Rename CMResourceLocator to CMGitBridge
- Rewrite loadBackgroundImage
- Allow CI to work with GitBridge
- Only load background image if Cormas-UI is loaded
- Create a separate workflow for Cormas-Core HOT 1
- Add Cormas-Deprecated package to the baseline
- Remove Cormas-UI-Roassal2 package
- Remove CMResourceCreator
- Deprecate CMResourceLoader
- Remove the unloadPackages method from the baseline
- Make entity creating faster by building the getter only once
- Make pluralization faster and remove the singleton from CMEntity class >> asGetterForEntityClass
- Add Pharo 10, 11, 12 to the baseline of Cormas-Core
- Rename CMResourceLocatorTest to CMGitBridgeTest
- Use juliendelplanque/PharoCodeGenerator to generate model's creationDate method
- Simplify the CMGitBridge
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 cormas.