This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
else if(action === Types.Messages.MOVE) { | |
if(self.move_callback) { | |
var x = message[1], | |
y = message[2]; | |
if(self.server.isValidPosition(x, y)) { | |
self.setPosition(x, y); | |
self.clearTarget(); | |
self.broadcast(new Messages.Move(self)); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
else if(action === Types.Messages.MOVE) { | |
if(self.move_callback) { | |
var x = message[1], | |
y = message[2]; | |
if(self.server.isValidPosition(x, y)) { | |
self.setPosition(x, y); | |
self.clearTarget(); | |
self.broadcast(new Messages.Move(self)); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ecmascript # Enable ECMAScript2015+ syntax in app code |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, { Component } from 'react'; | |
import Party from './Party.jsx'; | |
exports default class App extends Component { | |
getParties() { | |
// get a list of the parties currently. | |
return []; | |
}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class CloneMaker { | |
public void MakeClone() { | |
MyClone cloneA = new MyClone(); | |
System.out.printLn(cloneA.fullName); // OUTPUT: "Daniel Waldron"; | |
System.out.printLn(cloneA.firstName); // Won't compile, because of it's lack of access firstName is not defined. | |
System.out.printLn(cloneA.lastName); // Won't compile because of it's lack of access lastName is not defined. | |
cloneA.SayFirstName(); // OUTPUT: "Daniel"; | |
cloneA.SayLastName(); // OUTPUT: "Waldron"; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports = { | |
entry: './src/main.js', | |
output: { | |
path: './dist', | |
publicPath: 'dist/', | |
filename: 'build.js' | |
}, | |
module: { | |
loaders: [ | |
{ |