Selective add/remove tiles
Posted: 05 May 2010, 18:53
Hi, I have a specific functionality that I'm having trouble implementing...
For my app, I have created my own custom add/remove function which basically dispatches mouse events to simulate removing/adding tiles. This allows me to remove tiles via function calls on the client side (I implemented these functions because this cannot be accomplish with the current Openspace Client API).
I have a scenario were I would like to be able to remove non-editable tiles via code (dispatching mouse events). The reason for this is that I don't want the user to be able to remove specific tiles (a wall tile for example), but I (the client code) would like to be able to do this.
Basically, we have an app that contains walls (that the user cannot remove), and the user is able to place down doors. As soon as the user places down a door in front of a wall, the wall must be removed.
For my app, I have created my own custom add/remove function which basically dispatches mouse events to simulate removing/adding tiles. This allows me to remove tiles via function calls on the client side (I implemented these functions because this cannot be accomplish with the current Openspace Client API).
I have a scenario were I would like to be able to remove non-editable tiles via code (dispatching mouse events). The reason for this is that I don't want the user to be able to remove specific tiles (a wall tile for example), but I (the client code) would like to be able to do this.
Basically, we have an app that contains walls (that the user cannot remove), and the user is able to place down doors. As soon as the user places down a door in front of a wall, the wall must be removed.